Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Date wise report

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2010-09-27 : 03:41:25
Dear All,
I have to create one report where use will select the date range and report should look like this

Std_Name-Date1-Date2-Date3...

Now i want to peroform this task in Procedure. I am using SQL 2000

Please help

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-09-27 : 03:57:56
Please post table structure and sample data for clear understanding of requirement to help you.

Vaibhav T

To walk FAST walk ALONE
To walk FAR walk TOGETHER
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-09-28 : 10:41:47
See if this helps
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/dynamic-crosstab-with-multiple-pivot-columns.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -