Sequence on the output from an aggregator stage
Posted: Wed Apr 27, 2011 3:05 pm
I want to do sum on the values of a column and then populate it into another column.Then, use remove duplicate to remove the duplicate records so that there will be only one records with summed value based on the key columns.
Now,I want to set a sequence or rather a value '1' into another column based on the highest value on a key column.
For Example:
1000 4 1 --------> As 4 is the highest
1000 2 2 ---------> As 2 is the next highest.
1000 1 3 ---------> As 1 is the next highest.
..............
1 , 2 ,3 should be in sequence based on the highest values on the second column.
Please let me know how to implement it.
Now,I want to set a sequence or rather a value '1' into another column based on the highest value on a key column.
For Example:
1000 4 1 --------> As 4 is the highest
1000 2 2 ---------> As 2 is the next highest.
1000 1 3 ---------> As 1 is the next highest.
..............
1 , 2 ,3 should be in sequence based on the highest values on the second column.
Please let me know how to implement it.