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

DB2 connector> transformer > sequential file Data will be exported into a csv format in a sequential file. This file will be send in a email using a sequence job. Problem here is, how to avoid sending a blank csv file? When I ran the job there are chances that it might return zero records but in the sequence job csv file is going blank. how can I avoid this? thanks

1140


How to convert RGB Value to Hexadecimal values in datastage?

3562


Have you have ever worked in unix environment and why it is useful in datastage?

778


Differentiate between datastage and datastage tx?

683


Which commands are used to import and export the datastage jobs?

1088






How do you import and export data into datastage?

795


What is the difference between Datastage 7.5 and 7.0?

757


how to run a sequential file stage in parallel if the stage is used on the TARGET side

1224


Define Routines and their types?

723


Why do we use exception activity in Datastage?

874


how to write server Routine coding?

1752


if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?

1845


What is the difference between orabulk and bcp stages?

681


Why we use surrogate key?

790


What are the types of hashed files in data stage

740