i want to do an aggrigation max/min on date column comming from source - oracle
please Advice how can i achive this
Aggregator stage
Moderators: chulett, rschirm, roy
Aggregator stage
Thanks
Dana
Dana
-
- Premium Member
- Posts: 145
- Joined: Fri Sep 21, 2007 9:35 am
- Location: Boston
-
- Premium Member
- Posts: 145
- Joined: Fri Sep 21, 2007 9:35 am
- Location: Boston
Hi Dana,
I was using Date and not Timestamp but I am sure you can use the same logic for Timestamp too.
In a prior transformer stage I used AsInteger(Convert("-","", DateToString(Date,"%yyyy-%mm-%dd"))) to convert Date to integer and after the Aggregator stage reconverted the Integer back to Date in a later Transformer stage.
Please do not use "Preserve type = True" option in aggregator for this field.
Aruna.
I was using Date and not Timestamp but I am sure you can use the same logic for Timestamp too.
In a prior transformer stage I used AsInteger(Convert("-","", DateToString(Date,"%yyyy-%mm-%dd"))) to convert Date to integer and after the Aggregator stage reconverted the Integer back to Date in a later Transformer stage.
Please do not use "Preserve type = True" option in aggregator for this field.
Aruna.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: