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

SQL Transpose Columns

$
0
0

No need for UNPIVOT, a simple UNION ALL query will do the job

SELECT Date, Column1
FROM yourTable

UNION ALL

SELECT Date, Column2
FROM yourTable


Olaf Helper

[ Blog] [ Xing] [ MVP]

Viewing all articles
Browse latest Browse all 5


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>