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
Define meta stage?
How to reverse the string using SQL?
What is the difference between in process and inter process?
how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?
Difference between sequential file and data set?
Define Merge?
WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE
How do you reject records in a transformer?
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?
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.
how to use self join using datastage ? can u tell me using stage how can we implemnet the self join
Describe the main features of datastage?
What are the difference types of stages?
How many areas for files does datastage have?
What are the important features of datastage?