How to impliment left outer jion with Lookup

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
stiwari
Participant
Posts: 64
Joined: Wed Apr 05, 2006 3:45 am

How to impliment left outer jion with Lookup

Post by stiwari »

Hi All,


While loading Target table I have used left outer join/right outer join with join stage but performance wise it's very slow now I want to use Lookup stage instead of join stage but there is no option to take any Outer join.....If any one have any idea...Plz share it with me......


Thanks in advance

stiwari
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

Lets consider two tables EMPL and DEPT.

If you want to do join on these table and EMPL is your left table, then - make EMPL as your stream link for lookup stage and DEPT as your reference link. DeptNo will be lookup key.

Then in the contraint box, set the Lookup failure to Continue meaning even if the EMPL record is not there in DEPT, send it on the output.

I think full outer can not be done using lookup.
Regards,
S. Kirtikumar.
stiwari
Participant
Posts: 64
Joined: Wed Apr 05, 2006 3:45 am

Post by stiwari »

Kirti,

Thanks for your quick reply, I have tried this logic it's working fine... :D

Regards
stiwari
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Lookup will be good and effecient enough as long as the lookup data was able to find into memory.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply