Transpose/Pivot with all combination [message #637237] |
Wed, 13 May 2015 07:27 |
|
jjxxs
Messages: 1 Registered: May 2015
|
Junior Member |
|
|
Hi,Could u pls help on the following scenario. I need to transpose a table with the following content:
COL_A COL_B COL_C
544 D1 268
544 D1 269
544 D2 1
544 D3 69
544 D3 70
To the following:
COL_A D1 D2 D3
544 268 1 69
544 268 1 70
544 269 1 69
544 269 1 70
So, for each unique occurrence of COL_A, each unique value in COL_B is to be a column, and all permutations of COL_B, COL_C are to be transposed. For example if there were 5 rows of D1, 2 rows of D2, 3 Rows of D3 and 2 rows of D4
|
|
|
|
|