September 1, 2009 at 3:10 am
Hi All,
I want to create a weekly report by specifying a query between two dates.
Date Range is not fixed.
Result should come as below
Week1 Week2 Week3 Total
100 200 300 600
Shatrughna
September 1, 2009 at 3:41 am
Hi
SQL is not good at pivoting data , even with the PIVOT operator you have to know your finite list of columns.
Take a look at BOL (Books online) for more details
September 1, 2009 at 9:38 am
Hi,
You can also use the cross tabs as in jefff grate articlae
http://www.sqlservercentral.com/articles/T-SQL/63681/
see also part 2
September 2, 2009 at 2:50 am
Thanks everyone.
Shatrughna
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply