how to find the 5th highest salary form each department
using 1.SQL Query
2. Informatica power center designer?

Answer Posted / kondeti srinivas

sql query:
SELECT * FROM (SELECT DEPTNO,SAL,RANK()OVER (PARTITION BY DEPTNO ORDER BY SAL DESC) AS RNK) WHERE RNK=5

IN INFORMATICA

SOURCE ---SQ--RANK TANSFORMATION IN THAT SELECT DEPTNO AS GROUP BY PORT AND SAL AS RANK PORT AND SELECT TOP AND RANK =5

OUT PUT FROM RANK WILL BE DEPARTMENT WISE TOP 5 SALARIES ARE DISPLOYED AND FROM RANK TRANFORMATION CONNECT ALL PORTS INCLUDE RANKINDEX TO FILTER GIVE A CONDITION LIKE RANKINDEX=6

AND CONNECT ALL PORTS TO TARGET

Is This Answer Correct ?    14 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Briefly describe lookup transformation?

792


How do you load only null records into target?

947


Difference between Target-based loading and constraint-based loading?

754


How to load the name of the current processing flat file along with the data into the target using informatica mapping?

960


I have three same source structure tables. But, I want to load into single target table. How do I do this? Explain in detail through mapping flow.

1055


Scheduling properties,whats the default (sequential)

1676


What are the different types of olap? Give an example?

761


Write the different tools in the workflow manager?

782


Reusable transformation and shortcut differences

1584


What is an expression transformation in informatica?

757


How to start a workflow using pmcmd command?

929


Explain the different kinds of facts.

743


Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?

822


What are data-driven sessions?

947


What are the mapping parameters and mapping variables?

830