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 / vinod upputuri

hai first use the copy stage. from that take three links.

in that first and second links are connected to aggregator
stages.

agg1-- max and min for sal group by empno...

agg2--max only group by empno...

then use lookup for agg2 and third link of copy stage...

in lookup join max{sal} to sal and get deptno...

finally, o/p links from agg1 and lookup are joined by
lookup.. join by max{sal}....


then u can get the desired o/p...

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is staging variable?

624


What is the difference between informatica and datastage?

658


What is the project in datastage?

669


What is use Array size in datastage

1308


file having these input and we have to get 3 output using same job Input 1 1 1 2 3 4 4 4 o/p1 o/p2 o/p3 1 1 2 2 1 3 3 1 4 4 4

540






What are the main features of datastage?

662


Can anyone tell me a difficult situation who have handled while creating Datastage jobs?

2844


Have you used Unstructured data?

836


How can we improve performance of data stage jobs?

618


What is job control?

624


Can you explain players in datastage?

709


How to manage date conversion in Datastage?

640


How do you schedule or monitoring the job?

671


how to sort two columns in single job in datastage.

2534


hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys

2425