Using Select top 1
statement I have to retrieve data from an 8 column table without any unique key. Now I want to transpose this table into two columns: original column name to the first and its respective value to second.
An original table like this:
Column1 | Column2 | Column3 | Column4
55 | 108 | 555 | 85
And the expected result:
ColumnName | Value
Column1 | 55
Column2 | 108
Column3 | 555
Column4 | 85