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
what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees
Notification Activity
Different ways a project can be moved to production ?...example ….export-import and Version control.
What is the use of hoursfromtime() function in transformer stage in datastage?
how to run a sequential file stage in parallel if the stage is used on the TARGET side
if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?
Can you define merge?
What are the functionalities of link partitioner and link collector?
Explain Quality stage?
On which Dimension Table you implemented SCD Type in your Project
Can we use target hash file as a lookup ?
To see hidden files in LINIX?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?
How the ipc stage work?
what is ds administrator used for?