how to retrive the max(sal),deptno,empno in datastage?
Answer Posted / poornachandrababu.l
Hi, This is Poorna,
take a source and then copy stage,to copy stage 2 o/p links
one output is for aggregator and other for join.
In aggregator
set group=deptno
aggregator type=calculation
column for calculation=sal
max value output column=sal.
In Join stage do equee join based on deptno and sal .
And pass output of join Stage to target.
By doing this wasy we can get Max(sal) of the employee on
particular department.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
for example You have One Table with 4 Columns (Mgr ID, Department ID, Salary, Employee ID). Can you find out the Average Salary and Number of Employee present per Department and Mgr
how to delete one row in target dataset
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
Define repository tables in datastage?
What is quality stage?
How do you reject records in a transformer?
Which algorithm you used for your hashfile?
Can you explain engine tier in information server?
Explain how a source file is populated?
What are the main differences you have observed between 7.x and 8.x version of datastage?
How will you move hashed file from one location to another location?
How to Remove Duplicate using SQL?
How can one find bugs in job sequence?
how do u catch bad rows from OCI stage? And what CLI stands for?
what is the use of materialized view?