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 / pankaj das, orator
Just take...
source -> aggregate stage -> target
And then in aggregate stage in output tab just specify
col name groupby derivation
------- ------- ----------
id group by id
max_sal max(sal)
min_sal min(sal)
deptno deptno
| Is This Answer Correct ? | 1 Yes | 10 No |
Post New Answer View All Answers
Explain the importance of surrogate key in data warehousing?
How to find value from a column in a dataset?
How do you import and export data into datastage?
i WANTED TO USE THE RANGE LOOKUP SCENARIO IN DATASTAGE 7.5.2 SRVER JOB.i HAVE A DATE FIELD IN SOURCE AND I SHOULD MATCH IT WITH A FIELD IN LOOKUP FILE.BUT,THE FIELDS SHOULD MATCH EVEN THOUGH THERE IS SOME RANGE.CAN SOMEONE TELL ME HOW CAN I DO THAT. THANKS
which r the connectors used in san?
Explain datastage architecture?
What is a ds designer?
What is the difference between datastage and informatica?
Can you explain tagbatch restructure operator?
Define orabulk and bcp stages?
Different ways a project can be moved to production ?...example ….export-import and Version control.
What are the difference types of stages?
Explain ibm infosphere information server and highlight its main features?
Terminate Activity
How do you start developing a datastage project?