By using Transformation i need top most 5 employee salary
from each deptwise? Deptno 10,20,30? which transformation
we need to use?

Answers were Sorted based on User's Feedback



By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / sujana

v can do dis by using rank tranf... grpby dept no and rankindex=5

Is This Answer Correct ?    11 Yes 3 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / kiran

CREATE ONE ROUTER IN THIS CREATE 3 OUTPUT PORTS LIKE DEPT10,DEPT20,DEPT30.THEN OUTPUT OF THIS GIVE TO RANK IN RANK SPECIFY TOP AND NO OF RNAKS 5 THE WE GET EACH DEPT WISE TOP 5 RANKS.

Is This Answer Correct ?    4 Yes 1 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / ashwin

A simple way is here:
1: Drag & drop source and target
2: Create a Rank Transformation in between them
3: Open the rank t/r & go to Ports
4: Give Sal as 'R'(Rank) & Tick Group by on Deptno
5: Goto Properties select Top/Bottom,No.of Ranks=(as you need)

Is This Answer Correct ?    1 Yes 0 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / suguna

by using rank transformation rank of salary and aggregator
transformation for group by dept wise

Is This Answer Correct ?    4 Yes 4 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / sujana

@above

in rank also v hav grpby option..no need 2 use aggregator

Is This Answer Correct ?    2 Yes 2 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / jay

Override SQL in source qualifies with bellow query

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 10 order by Sal desc

Union All

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 20 order by Sal desc


Union All

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 30 order by Sal desc

Is This Answer Correct ?    1 Yes 2 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / gd

First override source qualifier
Select * from emp where deptno in(10,20,30);

Next sorter T/r sort on salary column desc

Then rank T/r set rank properties top and number of ranks is 5

target achieved

Is This Answer Correct ?    2 Yes 4 No

By using Transformation i need top most 5 employee salary from each deptwise? Deptno 10,20,30? whi..

Answer / jay

Override SQL in source qualifies with bellow query

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 10 order by Sal desc

Union All

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 20 order by Sal desc


Union All

Select Top 5 EmpNo, DeptNo, Sal from Employee where DeptNo = 20 order by Sal desc

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Informatica Interview Questions

without dynamic lookup transformation how to insert new rows and update existing rows?

7 Answers   Cap Gemini,


If I have set the property Treat Source Rows as Insert and for the target properties I have checked the boxes Update as Update, what will happen to incoming rows? What exactly is the use of these check boxes and in which scenarios we use them. Also what is the sequence in which informatica understands these properties.Does it takes whatever is defined in treat source rows as property or it is in any other way. Please explain.

3 Answers   Amdocs,


Session S1, S2, and S3. In the session S3 I want to load every Saturday. How it is possible?

2 Answers   TCS,


I have source like this year account month amount ----- --------- ------ -------- 1999 salaries jan 9600 1999 salaries feb 2000 1999 salaries mar 2500 2001 benfits jan 3000 2001 benfits feb 3500 2001 benfits mar 4000 -->i need target like this year account month1 month2 month3 ----- --------- -------- -------- -------- 1999 salaries 9600 2000 2500 2001 benfits 3000 3500 4000

4 Answers   HCL,


what is diff between IN and EXIT commands

1 Answers   HCL, Schneider,






What is the Difference between sorter and aggregator?

2 Answers  


How will u pas the data with out debugger?

4 Answers  


Explain the scenario which compels informatica server to reject files?

0 Answers  


What are the modules in Power Center

0 Answers  


if i hv 6 table as source table but can i make 12 as a dim table and 6 as fact table belongs to that src table.

0 Answers   iGate,


Hi Everybody, I have one fixed width file as source and 4 oracle tables (relational) as target. What are the Unit test cases i need to implement ? 1.Using TextPad software i tested postion of the field 2.As per specification i tested like whether it is correctly mapped or not? Is there any other test case do i need to implement. If possible can any one give me the test cases Advance Thanks

0 Answers   Cognizant, IBM,


what are the Methods For Creating Reusable Transformations?

0 Answers   Informatica,


Categories