Join Issue

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
rajudx
Participant
Posts: 45
Joined: Tue Nov 14, 2006 1:58 pm
Location: NJ

Join Issue

Post by rajudx »

As per the requirement we need to make join on two columns with one column.

e.g

Code: Select all

Table A      Table B        
CID          CID1,CID2,CITY 
230          230,560,NJ    
450          450,340,WC    
560                         
340 


Output
------
230,NJ
450,WC
560,NJ
340,WC


Source column have only one column and target table data presented on two columns and we are unable to use join/lookup stage, because those need to be setup on equal column names from source/target.
Please let me know which stage or process we need to use to get the output as mentioned above.

Thanks,
Raju
ssreeni3
Participant
Posts: 29
Joined: Fri May 18, 2012 1:35 am

Post by ssreeni3 »

Hi,
Pivot on Table B and Join.

I think this will work.

--------------
Sreeni
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Copy or Modify stage to change the name of the join key column on one of the input links so that it matches the name used on the other input link.
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