I have a basic table consisting of several thousand records. Im trying to generate a pivot query for a report. the table consists of records, each of which has a recieved date ( small date time ) and a tranactioncount ( int ) . Im looking to generate a PIVOT to show the show the month and year counts for the files recieved
ie
YEAR | JAN FEB MAR APR etc
2004 ! 2 34 67 43
2005 | 12 2 3 1
can anybody explain in laymans terms how to do this
Thank you in advance

PIVOT question
phatrice93
To do this in 2000, check out my reply of this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=249991&SiteID=1
However, the PIVOT method in 2005 is better. What errors are you getting
Mark Panarusky
giorgos
Hussain_Alyousif
If 2005, use the pivot function
Sankar Reddy
DrMicrochip
I am curious to know what are the practical uses of the Pivot function assuming you do not grant end users acces to your database.
On my side, I use the pivot function to pack more data in Reporting Services while avoiding the Matrix reports shortcomings, however it is very tedious to build. If you want if maitenance free. You have to break the rule of "NO dynamic SQL ever".
Any thoughts
Philippe