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

Explain the pipeline partition with real time example?

0 Answers   Informatica,


Design a mapping to get year of join for each employee.

4 Answers   Accenture,


in aggregator transformation we want to get middle record how to implement, source containg empno,name sal,deptno,address

1 Answers   Cognizant,


How do you load first and last records into target table?

0 Answers  


if we are extracting 600000 records from a source table so how much volume of records frequently we load in warehouse. (Iknow its depend on client requirement) still i want to know how much volume of records store in warehouse.

2 Answers   IBM,






What is a passive transformation?

0 Answers   Informatica,


Why is sorter an active transformation?

0 Answers  


What type of sorting algorithm does the Sorter Transformation use, to do its sorting Operation? 1. Bubble sort 2. Insertion sort 3. Shell sort 4. Merge sort 5. Heapsort 6. Quicksort 7. Bucket sort

1 Answers   Qwest,


what is meant by data driven.. in which scenario we use that..?

2 Answers   IBM,


1)how to generate sequnce numbers in informatica without using sequnce genarator transformation. 2)i have number of records in my sourse, but iwant to display first and last record only. how it is possible in informatica. 3)i want to update the records without using updatestrategy transformation. 4)what is diffrance between ab-intio and datastage than compared to informatica. 5)what is the latest version of informatica in our field.

5 Answers   CTS,


How do you use reject loader.

0 Answers  


What is a connected transformation?

0 Answers   Informatica,


Categories