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

SQL Transpose Columns

$
0
0

Hello EveryOne,

Can anyone provide me solution to my below requirement in sql ? I have below data in my table.

DateColumn1`Column2
8/31/201916
8/31/201927
8/31/201938
8/31/201949
8/31/2019510

I need below final out put with UNPIVOT operator.

DateColumn1`
8/31/20191
8/31/20192
8/31/20193
8/31/20194
8/31/20195
8/31/20196
8/31/20197
8/31/20198
8/31/20199
8/31/201910


Anil


Viewing all articles
Browse latest Browse all 5


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