I have the following data
Col1, Col2, Col3, Col4, Col5
1, P, W, M, adhfggh
1, P, W, M, fdasdfd
1, P, W, M, retretre
So, I would like to get this
Col1, Col2, Col3, Col4, ColA, ColB, ColC
1, P, W, M, adhfggh, fdasdfd, retretre
I should try something like this, but not sure what to put in brackets
select Col1, Col2, Col3, Col4, Col5 from tableA
Unpivot
( Col1, Col2, Col3, Col4 for Col5 in (, , ) ) as UnPvt
I appreciate for any help.