Performing a non-equal 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
NewPXUser
Participant
Posts: 17
Joined: Fri Feb 11, 2005 6:06 am

Performing a non-equal lookup

Post by NewPXUser »

Hi,

I need to perform a reference to table where the key includes the effective period. i.e. Key contains of 3 cols - Main Key, Effective From Dt and Effective To Dt.

The source brings along the Main Key and event date.

I need to obtain the record from the reference which was valid on that point of time. Also any non-matching records must be identified for rejection.

Did a search but did not get anything close to my requirement. I intend few work arounds, but they will result in adding complications.

Any suggestions are welcome.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello NewPX,

the search clauses 'range lookup' or 'select BETWEEN' will get you on your way. There really are quite a few threads and many posts on this subject -- is it a particularly common issue found in most implementations and has many different ways of approaching a solution, so you need to check around a bit before deciding on an approach.
Post Reply