how to retrive the max(sal),deptno,empno in datastage?
Answer Posted / subbuchamala
SRC--> COPY stage--> 2 o/p links from COPY Stage-->
one is --> AGGREGATOR and other is --> JOIN-->TGT
-->In AGG Stage:
set group=DEPNO
aggregator type=calculation
column for calculation=SAL
max value output column=SAL
-->O/P of AGG Stage:
SAL(max(sal), DEPNO
-->In JOIN stage:
Inner Join on DEPNO and SAL and get the EMPNO as well.
By doing this, we get Max(sal) of the employee on particular DEPNO.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How the ipc stage work?
what is the use of materialized view?
How to reverse the string using unix?
How to perform incremental load in datastage?
Which algorithm you used for your hashfile?
what is the use of skid in reporting?
Explain entity, attribute and relationship in datastage?
What are the types of views in datastage director?
How to read multiple files using a single datastage job if files have the same metadata?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
how to abort the job its matain duplicates?
What is apt_config in datastage?
why do u need the IOS upgradation in a FC switch
what are .ctl(control files) files ? how the dataset stage have better performance by this files?
What is quality stage?