jcorbin
asked on
PIVOT Equiv in T-SQL??
Is there a comparable function to Access's PIVOT?? I would like to sum all
the records by employee location by Job Title, where i'd be doing a group by Job Title and pivot on Location;
JobTitle LocationA LocationB LocationC Total
Job01 22 22 3 3 77
Job02 11 10 1 0 31
etc....
ANy help is appreciated greatly..................
John
jcorbin@apci.net
the records by employee location by Job Title, where i'd be doing a group by Job Title and pivot on Location;
JobTitle LocationA LocationB LocationC Total
Job01 22 22 3
Job02 11 10 1
etc....
ANy help is appreciated greatly..................
John
jcorbin@apci.net
This fature dosn't exist in SQL server, the easiest way is to attach the table in Access and use it's function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
A useful procedure for doing this in T-SQL (Microsoft SQL Server) is given on this web page:
http://www.sqlteam.com/item.asp?ItemID=2955
http://www.sqlteam.com/item.asp?ItemID=2955