Apart from Union , Union all and Pivot in MS- Sql server can I combine two columns into one column -
Apart from Union , Union all and Pivot in MS- Sql server can I combine two columns into one column -
i having result set
col1: col2 b c d i want result set
a b c d without using union, union , pivot.
select t.x table cross apply ( values (col1), (col2) ) t(x)
sql sql-server sql-server-2008
Comments
Post a Comment