combination of two records using key

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
edward_m
Charter Member
Charter Member
Posts: 257
Joined: Fri Jun 24, 2005 9:34 am
Location: Philadelphia,PA

combination of two records using key

Post by edward_m »

I have a requirement to comibe records to one record based on their key

Example..

NO Name
1 STR
1 M
2 PMR
2 L
3 KYM
3 Z

I want to convert the above into the following output

NO Name1 Name2
1 STR M
2 PMR L
3 KYM Z

Could you please through some ideas how to get the desired output from the above.........
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: combination of two records using key

Post by sachin1 »

hello friend below link is good example, it will help you

viewtopic.php?t=97681&highlight=vertical+pivot
Post Reply