Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Have you have ever worked in unix environment and why it is useful in datastage?

1134


Differentiate between hash file and sequential file?

1077


1.what is repartionoing technique? 2.what deliverables transferred to client using datastage? 3.how to write loop statements using nested loop sequence?

2277


tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise

3126


What is the project in datastage?

1116


how to implement scd2 in datastage 7.5 with lookup stage

5610


How do you register plug-ins?

968


Notification Activity

1415


Define project in datastage?

1103


Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC

1418


Is the value of staging variable stored temporarily or permanently?

1004


If you want to use the same piece of code in different jobs, how will you achieve it?

1161


What is a quality stage in datastage tool?

1081


Explain entity, attribute and relationship in datastage?

1111


what is ds administrator used for?

1175