I am not sure I want yto do pivot so looking for some other option to change rows to column. So I have ,
R(M) Measure Metrc MEtrcDesc
2 $ 04 APS
3 Units 05 CAN
3 Units 06 PRS
2 Units 07 APL
I have more than million rows in my database where I need to change these to:
MetrcDesc 04$ 04Units 05$ 05Units 06$ 06Units 07$ 07Units
APS 2 NULL NULL NULL NULL NULL NULL NULL
CAN NULL NULL NULL 3 NULL ULL NULL
PRS NULL NULL NULL NULL NULL 3 ULL NULL
SPPandey