
March 13th, 2003, 08:43 PM
|
|
Registered User
|
|
Join Date: Mar 2003
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
CrossTab equivalent in SQL server
I’ve developing an .asp application and want to have a built in query that will display the summary of my data.<br><br>I used the CrossTab query from MS-Access and it works when linked via MS-Access. However, I understand that there is no equivalent for CrossTab query in SQL server. I am completely stumped and hoping with your expertise, you might be able to have suggestion(s) in making this works in SQL. <br><br>Here is my MS-Access Query:<br><br>TRANSFORM Sum(dbo_Planned.[Estimated CER Amt]) AS [SumOfEstimated CER Amt]<br>SELECT dbo_Planned.Region, dbo_Planned.Category<br>FROM dbo_Planned<br>GROUP BY dbo_Planned.Region, dbo_Planned.Category<br>PIVOT dbo_Planned.CER_Qtr;<br><br>Thanks in advance for your help.<br>~Ha
|