Page 1 of 1

Grouping of Related Data

Posted: Thu Mar 24, 2005 10:28 pm
by Bilwakunj
Hi,
I've a following situation.
I'm supposed to do a look up on 1 dataset (primary i/p) and a oracle table (reference link) based on 5 columns.
1. A
2. B
3. Date1
4. Date2
5. C

Now the criteria is if there is a match found on colum A, B and C, it meets the initial criteria. And from the output of this I'm supposed to pick up the earliest date(Date1) among the related group(the records which have a match for column A, B, C are relared). So in short there will be 1 earliest Date1 for each group & there can be several groups.
Can this task be done using look up ? Or shd I go for some other stages?

Thanks in advance.

Bilwakunj

Posted: Fri Mar 25, 2005 1:00 pm
by gh_amitava
Hi,

You have to do a Lookup/Join to get the values from database but after that you can use "Remove Duplicates" stage to pick the smallest Date1. For that , in the input of "Remove Duplicate" stage, use a Hash partition on A,B, C and so a sort on Date1.

Regards
~Amitava