TABLE NAME : UNPIVOT
IN THE SOURCE UNPIVOT TABLE DATA IS PRESENT LIKE THIS
COLUMN1 | COLUMN2 | COLUMN3 | COLUMN4
A | B | P | 1
A | B | Q | 2
A | B | R | 3
I WANT THE FINAL OUTPUT IN THIS WAY
COLUMN3 VALUES SHOULD BE THE COLUMN NAMES AND THE COLUMN4 DATA IS THE VALUES FROM COLUMN3
COLUMN1 | COLUMN2 | P | Q | R
A | B | 1 | 2| 3
THANKS IN ADVANCE