Home Forums SQL Server 2008 T-SQL (SS2K8) pivot? can't make it work. RE: pivot? can't make it work.
HanShi
SSC-Dedicated
Points: 33506
More actions
June 20, 2013 at 5:24 am
#1625824
Take a look at the blog from Aaron Bertrand where he builds a dynamic PIVOT solution:
http://www.mssqltips.com/sqlservertip/2783/script-to-create-dynamic-pivot-queries-in-sql-server/