oracle join or datastage lookups

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
Anthony1200
Premium Member
Premium Member
Posts: 28
Joined: Wed Mar 28, 2007 6:57 am
Location: Amsterdam

oracle join or datastage lookups

Post by Anthony1200 »

Hi,

I have 2 tables A and B that are almost equal but need to be combined

A.1 A.2 A.3 A.x1 A.x2
B.2 B.2 B.3 B.y1 B.y2

The result in table I needs to be:
I.1 I.2 I.3 I.x1 I.x2 I.y1 I.y2

Since not all values need to be in A or B, the x or y columms need to be NULL when there is no match on the key collums A1 .. A3 and B1 .. B3

DO I need to perform a double datastage lookup? or should I use an oracle query?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For whatever reason, your example is not making any sense to me this morning. However, sure seems like the join for something like this could be best done in the source query rather than via some complex lookup.

To discuss this more, seems to me that real examples with actual values, both source and result would be very helpful.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply