Case statement in Aggregator stage
Posted: Mon Jun 25, 2012 1:02 pm
Hi,
I need to do the following Oracle functionality in Datastage -
sum(case when field1 = 'X' then 1 else 0) countx,
sum(case when field1 = 'Y' then 1 else 0) county
Is it possible to do this in aggregator stage or i need to put this logic in transformer stage before the aggregator.
Thanks,
Vishal
I need to do the following Oracle functionality in Datastage -
sum(case when field1 = 'X' then 1 else 0) countx,
sum(case when field1 = 'Y' then 1 else 0) county
Is it possible to do this in aggregator stage or i need to put this logic in transformer stage before the aggregator.
Thanks,
Vishal