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

Define meta stage?

786


How to reverse the string using SQL?

894


What is the difference between in process and inter process?

670


how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?

1920


Difference between sequential file and data set?

645






Define Merge?

878


WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE

3271


How do you reject records in a transformer?

629


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?

1747


how can we validate the flat files using the date in the header and number of records in the flat file? Using both conditions at a time.

2734


how to use self join using datastage ? can u tell me using stage how can we implemnet the self join

4566


Describe the main features of datastage?

658


What are the difference types of stages?

621


How many areas for files does datastage have?

644


What are the important features of datastage?

616