which transformation should we use to get the 5th rank
member from a table in informatica?can we achieve this in
sql?

Answers were Sorted based on User's Feedback



which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / venkateshmalneni

FOR THIS WE HAVE 2 USE TWO T/R ie FIRST WE HAVE 2 USE RANK T/R
AND THEN USE A FILTER T/R IN FILTER GIVE THE CONDITION AS
RANK=5 CONNECT TO TARGET
THE FLOW IS LIKE THIS
SRC --->SQ--->RANK--->FILTER--->TRG

WE CAN ALSO DO THIS IN SQL USE THE FOLLOWING QUERY

SELECT * FROM <TABLE_NAME> WHERE ROWNUM <= 5 MINUS SELECT *
FROM <TABLE_NAME> WHERE ROWNUM <=4;

Is This Answer Correct ?    8 Yes 0 No

which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / bhaskar

select * from(select * from emp order by sal desc)
where rownum<=5
MINUS
select * from(select * from emp order by sal desc)
where rownum<=4

Is This Answer Correct ?    3 Yes 0 No

which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / satyanarayana

first one is correct

Is This Answer Correct ?    1 Yes 1 No

which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / yaseen

As my knowledge we can write as
select distinctsal from emp A where 5 =
(select count(distinctsal) from emp B where A.sal <= B.sal)

Plz correct me if I am wrong

Is This Answer Correct ?    0 Yes 0 No

which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / jvdwhinfo

Hi There,

The DFD given in answer is absolutely correct in
informatica.

But coming to sql override stuff i agree with answer 4.
And i want to do little modification keeping performance in
view.
The modified query looks like this.

With salorder
As
(select * from emp)
select * from salorder where rownum <= 5
minus
select * from salorder where rownum <= 4;

Thanks,
James

Is This Answer Correct ?    0 Yes 1 No

which transformation should we use to get the 5th rank member from a table in informatica?can we a..

Answer / chandrasekar

Hi Venkatesh,

The above SQL query is not working correctly..

I have one answer for the above problem. The query is, try
it in the SQL override.

select * from emp where sal=(select max(sal) from emp a
where (select count(sal) from emp b where b.sal >=a.sal)=5)

If it wrong means send the correct answers to me
chandranmca2007@gmail.com

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Informatica Interview Questions

Clarify the aggregator change?

0 Answers  


CAN WE IMPLEMENT SCD TYPE 1 AND SCD TYPE 2 IN SAME MAPPING? IF SO HOW?

6 Answers  


what is shortcut in informatica? difference between shortcut,reusable object?

2 Answers   Virtusa,


in my source i have 100 records, and 3 targets, i want to load 1st record into 1st target,2nd record into 2nd target,3rd record into 3rd target again 4th target into 1st target and vice versa,how to achieve this?

3 Answers   Thomson Reuters,


Source Qualifier is an active t/r but there is no change of row count then y should we called it active t/r & Router , sorter some times no change in row count then Y we called its active t/r?

2 Answers  






How can you validate all mappings in the repository simultaneously?

0 Answers  


How you count the number of records available at your source?

3 Answers   Zensar,


how u know when to use a static cache and dynamic cache in lookup transformation.

9 Answers   Accenture,


What are the challenges you have faced in your project?

1 Answers   Cognizant, Infosys,


how can we find the bottle neck in SQL Query in SOURCE QUALIFIER, and how can we tune it..?

2 Answers   Zensar,


In update strategy t/r we had given dd_insert condition & in session we gave delete condition . Then what will happen? mapping will run ?

3 Answers   emc2,


What are the mapings that we use for slowly changing dimension table?

2 Answers  


Categories