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

What is the flow of loading data into fact & dimensional tables?

602


Which warehouse using in your datawarehouse

1686


What all are the different way to run a job?

646


How to read multiple files using a single datastage job if files have the same metadata?

744


What is the process of killing a job in datastage?

595






which r the connectors used in san?

1799


What are the differences between datastage and informatica?

572


What are the difference types of stages?

630


What are the repository tables in datastage?

831


AGGREGATOR default datatype

939


what is ds administrator used for?

728


What is the sortmerge collector?

672


I/p : F1 table have A,B,C,D,E and F2 table having C,E,V i need output 0utput1: ABD output2: V any one suggest me this

554


Explain how a source file is populated?

769


Differentiate between datastage and informatica?

731