A basic question in DataStage joins
Posted: Mon May 14, 2018 5:33 am
Hi all,
I'm rather new to DataStage, so I was hoping you'll be able to help me with a rather easy question.
I'm currently trying to write a join between a main table and an auxilliary one oin the source side. The join should be with the following key:
MAIN.A = AUX.A and MAIN.B = AUX.B and MAIN.C = MAX(AUX.C) where AUX.C <= MAIN.C.
Then I populate some fields from both MAIN and AUX into a target table.
How do I create such a condition? Obviously A and B are easy, but how do I create C and add it to the key?
I'm rather new to DataStage, so I was hoping you'll be able to help me with a rather easy question.
I'm currently trying to write a join between a main table and an auxilliary one oin the source side. The join should be with the following key:
MAIN.A = AUX.A and MAIN.B = AUX.B and MAIN.C = MAX(AUX.C) where AUX.C <= MAIN.C.
Then I populate some fields from both MAIN and AUX into a target table.
How do I create such a condition? Obviously A and B are easy, but how do I create C and add it to the key?