Which stage for matching a date value in a range

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
pompano
Participant
Posts: 1
Joined: Thu Nov 30, 2006 1:38 pm
Location: Hartford, CT

Which stage for matching a date value in a range

Post by pompano »

I'm having trouble figuring out which stage to use for this scenario.

I have two equally large data source tables. I need to take records from table A where a date vaule in A falls between a start and end date in table B.

The two tables have no columns in common to use for an equi-join.

I can't use a lookup here since I need to keep going after the first lookup.

I also need to keep a list of the records from A that fall out and have no matches in the data range of B.

This is not a mainframe project.


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

Post by ray.wurlod »

You have not specified the logic. There appears to be no way to solve the problem as posed, as there is no relationship between the two tables. Even if I can select a row - or several rows - in the date range from table B, how does that tell me which row(s) to select from table A?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply