i want for the 3rd max sal using for the any stage but max
sal is based on the deptno ?
any body know this ans pls send this mail siva3me@gmail.com
Answer Posted / subhash
Src ---> Tfm ---> Tgt
in the TRANSFORMER Stage.
Do the HASH partitioning the incoming data and 'Perform
Sort' on DEPTNO ASC order and SAL DESC order.
and use 2 STAGE VARIABLES sv1=0 & sv2=0.
sv2 ===> If sv1=DEPTNO Then sv2+1 Else 1
sv1 = DEPTNO
And Put the below Link contraint:
sv2=3
Then u will get 3rd highest SAL from each DEPT.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Have you have ever worked in unix environment and why it is useful in datastage?
Differentiate between hash file and sequential file?
1.what is repartionoing technique? 2.what deliverables transferred to client using datastage? 3.how to write loop statements using nested loop sequence?
tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise
What is the project in datastage?
how to implement scd2 in datastage 7.5 with lookup stage
How do you register plug-ins?
Notification Activity
Define project in datastage?
Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC
Is the value of staging variable stored temporarily or permanently?
If you want to use the same piece of code in different jobs, how will you achieve it?
What is a quality stage in datastage tool?
Explain entity, attribute and relationship in datastage?
what is ds administrator used for?