hi my source is::
empno,deptno,salary
1, 10, 3.5
2, 20, 8
2, 10, 4.5
1, 30, 5
3, 10, 6
3, 20, 4
1, 20, 9
then target should be in below form...

empno,max(salary),min(salary),deptno
1, 9, 3.5, 20
2, 8, 4.5, 20
3, 6, 4, 10
can anyone give data flow in data stage for the above
scenario....

thanks in advance...

Answer Posted / lakshmi srinivas

source->copy->2 aggregators->join->target

1 aggregator->eno,max(sal),min(sal)

2 aggregator->eno,dno,max(sal)

by using max(sal) key, we can join both o/p of
aggregators,we can get that output...

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of lookups in datastage?

626


What are the different common services in datastage?

703


Terminate Activity

836


What is a datastage job?

614


How a source file is populated?

609






explain about citrix scheduling tool in datastage

1808


What are iconv and oconv?

771


What is the use of datastage director?

586


how to add a new records into source?

1525


What are transforms and what is the differenece between routines and transforms?

611


Can you implement SCD2 using join, transformer and funnel stage?

1080


What are the functionalities of link partitioner?

614


How to implement complex jobs in data stage?

612


What is usage analysis in datastage?

808


What is datastage?

647