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
On which Dimension Table you implemented SCD Type in your Project
Differentiate between data file and descriptor file?
Name the third party tools that can be used in datastage?
Hi All , in PX Job I have passed 4 Parameters and when i run the same job in sequence i dont want to use those parameters , is this possible if yes then how
describe the Steps to confiure a Qlogic switch
Can you explain how could anyone drop the index before loading the data in target in datastage?
How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...
What is the difference between datastage and datastage tx?
What is the difference between in process and inter process?
What are the types of containers in datastage?
What are stage variables, derivations and constants?
Differentiate between datastage and informatica?
I have a few records just I want to store data in to targets cycling way how?
What are the main features of datastage?
Can you explain repository tables in datastage?