Wednesday, September 12, 2012

SQL - Transpose Columns to rows

Convert column headers into row values, and expand row values into multiple rows under a single column using UNPIVOT

Great example here

http://blog.logiclabz.com/sql-server/transpose-columns-to-rows-in-sql-server-2005-using-unpivot.aspx


No comments:

Post a Comment