Convert row data into column based on key

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ambasta
Participant
Posts: 93
Joined: Thu Jan 19, 2006 10:29 pm
Location: Bangalore

Convert row data into column based on key

Post by ambasta »

Hi ,
I have a reuirement to convert the row data into column based on key.

The data will be like
1|A
1|B
1|C
2|X
3|Y
3|Z

Output should be like :
1|A,B,C
2|X
3|Y,Z

Pls Help!!!
ambasta
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This is a vertical pivot. Search for "vertical pivot" - it has been discussed many times.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply