I Have a table like this:
a | b | c
-------------
1 | 2 | 3
where the first row are column names. I want to swap entire table and converto to this:
col | val
-----------
a | 1
b | 2
c | 3
How can I do this by Unpivot in T-SQL?