Non Equi joins

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
suman27
Participant
Posts: 33
Joined: Wed Jul 15, 2009 6:52 am
Location: London

Non Equi joins

Post by suman27 »

Hi
Is there any way to do non equi join in data stage parallel job?

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

Post by ray.wurlod »

Not using a Join stage.

If the two sources are in the same database, then you can have DataStage push the join query into that database.

Some solution, but not a general solution, might be possible via the range lookup mechanism.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Post by soumya5891 »

Let say two record set A and B
A: ID VAL IDENTITY(Nullable)
1 20 1
2 90 1
3 30 1

B: ID NME
1 AA
3 MM
Now left outer join A with B A as left link.If IDENTITY is NOT NULL means match found and if IDENTITY IS NULL means match found
Soumya
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No it doesn't. Because there is also the possibility that a match was found but IDENTITY is null in data set A. The proper test for not found is that B.ID is null. However, none of that has anything at all to do with non equi joins.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

What about dumping the matched records and capturing the rejects for further processing in Lookup or Merge stage??
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Post by soumya5891 »

In this case IDENTITY is user defined column can be created in a transformer stage.So in that case for every incoming record assign it's value to 1.Then in spite of being a not null column this field will not contain any null value.
Soumya
Post Reply