Lookup scenario with duplicate keys in the reference table

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
sg33
Participant
Posts: 25
Joined: Wed Nov 24, 2010 3:07 am
Location: India

Lookup scenario with duplicate keys in the reference table

Post by sg33 »

Hi -

There is a scenario in one of the new requirement of our project:

The input stream has columns COLA and COLB, COLB is the key column. The reference link has COLB and COLC.

I want to do a left outer join based on COLB but COLB has duplicate entries in the reference link. The values for COLC are different for these duplicate key values. I want to take both the values for COLC based on the lookup key and then run a search on another table for these values from COLC.

Is there any simple approach to achieve this?

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

Post by ray.wurlod »

The Lookup stage permits return of multiple rows from one reference link.

Open the Lookup Stage Conditions and choose the reference link name from the "Multiple rows returned from link" drop-down list.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

If you use Join stage, you will get all the duplicate values by default
You are the creator of your destiny - Swami Vivekananda
Post Reply