Viewing 9 posts - 211 through 219 (of 219 total)
I have mentioned in the script that this startegy depends on knowing future growth of your data.
In the application where I have implemented this I had an extra table which...
May 17, 2012 at 5:55 am
Nice article...
Using tally( or numbers table) is best way..Easy to code :).
May 15, 2012 at 9:13 am
Below is the sql to show how much cpu time and logical IO's it takes to find the customers who bought A,B but not C.
Also, I have done a performance...
May 11, 2012 at 10:23 am
Hi Jeff
It is just sum of 2 power (0 for A, 1 for B ,2 for C,3 for D ..and so on)..
Thus if you have all 3 codes then...
May 11, 2012 at 9:42 am
Try this as well.But see what is you first day of Month.
declare @date date, @day varchar(10)
set @date = dateadd(dd,-5,getdate())
set @day = 'Saturday'
select dateadd(dd,case when val <= dwpart then 7-dwpart +...
May 11, 2012 at 3:56 am
select * from
(
select id,max(case when cd = 'A' then 1 else 0 end) + max(case when cd = 'B' then 2 else 0 end) + max(case when cd =...
May 11, 2012 at 3:24 am
select * from
(
select id,max(case when cd = 'A' then 1 else 0 end) + max(case when cd = 'B' then 2 else 0 end) + max(case when cd =...
May 11, 2012 at 3:21 am
Viewing 9 posts - 211 through 219 (of 219 total)