Quantcast
Channel: SQL Transpose Columns
Viewing all articles
Browse latest Browse all 5

SQL Transpose Columns

$
0
0

UNION would be the best way.

You could create your second table first then insert 120 times your data, changing the column in a loop. Do this with dynamic SQL.


Viewing all articles
Browse latest Browse all 5