Viewing 11 posts - 1 through 11 (of 11 total)
Hi SwePeso,
Thanks for taking the time to look at this, your solution apppears way better than mine.
I am going to add CROSS APPLY to my study list along with with...
July 1, 2011 at 5:44 am
With a great deal of inspiration from ColdCoffee the following works but I am concerned about the performance of the query with RBAR to calculate the charge for each given...
June 29, 2011 at 10:49 am
Thanks. The revised code does solve the last row issue. I'm off to get some shut eye :doze: it is now tomorrows problem!
ColdCoffee (6/28/2011)
Paul-202125 (6/28/2011)
This is already taken care in...
June 28, 2011 at 4:23 pm
Hi, thanks for this. Pivot and UnPivot are an area of TSQL I have yet to fully appreciate the capabilities of and your code is much closer than I have...
June 28, 2011 at 3:56 pm
The effective date range for each charge is held in the table. When I run the procedure to calculate the charges I envisage submitting start and end parameters that will...
June 28, 2011 at 10:51 am
Thanks Paul. I have got it coded into my procedures it is working very well and the performance is good.
Paul White NZ (4/9/2010)
April 11, 2010 at 3:14 pm
Thanks Paul and Chris for your replies. I have decided to use Paul's example with pivot and unpivot. Code using my example data below:
USE TEMPDB
IF EXISTS (SELECT * FROM...
April 9, 2010 at 9:35 am
This time with a bit more effort on my part! 🙂
The code is below and it uses 9 address lines not 7 as per my original post. The code shows...
April 9, 2010 at 8:03 am
Hi, the only key I have to link to the import without making any assumptions is the systemkey field, the name field is actually split into forename, surname, title. The...
October 7, 2008 at 3:31 am
Thanks for the reply Mark. I have had a look at and play with the OUTPUT clause, the problem is that I can't guarantee the name field is unique and...
October 6, 2008 at 7:06 am
I have always used newid() for a random selection of records something like:
select top 100 name from names
order by newid()
Paul.
November 1, 2005 at 4:14 am
Viewing 11 posts - 1 through 11 (of 11 total)