How to Display top 2 salaries for each department WITHOUT
using Rank Transformation And WITHOUT using SQL queries in
source qualifier.

Answers were Sorted based on User's Feedback



How to Display top 2 salaries for each department WITHOUT using Rank Transformation And WITHOUT us..

Answer / harish konda

connect the Source to sorter and sort the data in Descending
order of salary, department and connect to expression and in
expression generate the sequence of numbers(for eg a port
flag) in such a way that whenever salary changes number
increment to 1, and keep in mind whenever department changes
the numbering should start from 1. And next connect the exp
to Filter and give condition as flag<=2.

Is This Answer Correct ?    18 Yes 2 No

How to Display top 2 salaries for each department WITHOUT using Rank Transformation And WITHOUT us..

Answer / ahmed

Use Sorter transformation,apply sort key on sal Col as Desc
and use seq Gen transformation then apply filter on first
two seq numbers...

Is This Answer Correct ?    9 Yes 13 No

How to Display top 2 salaries for each department WITHOUT using Rank Transformation And WITHOUT us..

Answer / dave

Use Aggregator as Transformation with MAX and 2 outputs

Is This Answer Correct ?    0 Yes 10 No

Post New Answer

More Informatica Interview Questions

What are some examples of informatica etl programs?

1 Answers  


How can we trouble shoot the commas in a column of a comma delimited flat file in Informatica

1 Answers  


can you use flat file for repository?why?

2 Answers   TCS,


If I have a index defined on target table and if set it to bulk load will it work ?

4 Answers   IBM,


What is staging area?

11 Answers  


what is scd?

6 Answers  


Explain the different dimensions.

1 Answers  


what is upstream and downstream transformation?

7 Answers  


When you move from devel to prod how will you retain a variable

1 Answers  


In Flat file, I need Header, Footer and No of rows in Last column. How will u achieve in Mapping Level(With out using Session Level Property)?

1 Answers   iNautix,


What is the function of look up transformation?

1 Answers  


What are the joiner caches?

3 Answers   Informatica,


Categories