Pivot Stage-Help Required
Posted: Wed Aug 05, 2009 10:42 am
Hi all,
I have a requirement of Horizontal pivot i.e c\Columns to Row conversion.The logic to be achieved is explained below
i/p:
ID COL1 COL2 COL3 COL4
1 10 20 30 40
2 11 25 32 15
3 45 56 23 100
Required O/p:
ID CHAR1 CHAR2
1 COL1 10
1 COL2 20
1 COL3 30
1 COL4 40
2 COL1 11
2 COL2 25
2 COL3 32
2 COL4 15
3 COL1 45
3 COL2 56
3 COL3 23
3 COL4 100
Please help me in achieving this output using Pivot Stage.
Regards,
Balakrishna
I have a requirement of Horizontal pivot i.e c\Columns to Row conversion.The logic to be achieved is explained below
i/p:
ID COL1 COL2 COL3 COL4
1 10 20 30 40
2 11 25 32 15
3 45 56 23 100
Required O/p:
ID CHAR1 CHAR2
1 COL1 10
1 COL2 20
1 COL3 30
1 COL4 40
2 COL1 11
2 COL2 25
2 COL3 32
2 COL4 15
3 COL1 45
3 COL2 56
3 COL3 23
3 COL4 100
Please help me in achieving this output using Pivot Stage.
Regards,
Balakrishna