Assume, i have 4 columns in a table
id | col1 | col2 | col3
now i want to transpose that into one column but in 4 rows:
resul
This can be done using unpivot.
unpivot
select result from tablename unpivot (result for colnames in (id,col1,col2,col3))