Create PIVOT.sql

Lay out data column-wise using dynamic sql and PIVOT statement