Performing a non-equal lookup
Posted: Thu Sep 01, 2005 9:16 am
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.
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.