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

What is lookup transformation?

0 Answers  


I have 100 records in source table, but I want to load 1, 5,10,15,20…..100 into target table. How can I do this? Explain in detailed mapping flow.

0 Answers  


HOW DO YOU PARFORM INCREMENTAL LAOD ?

7 Answers   SAIC,


my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 like dis and my requirement is first record is inserted into first target and duplicates of first record is inserted into second target ...like dis way ...? how to achieve dis?

4 Answers   Mind Tree, Polaris,


Can you copy the batches?

3 Answers  


Which are the different editions of informatica powercenter that are available?

0 Answers  


How to use Normalizer transformation?

2 Answers  


1. When u r checking out what ll happens for version no? a. Increase b. decrease c.reset to 0 d. reset to 1 e. no change 2. Salary of all employees needed to add with the commision. What transfrmation to be used? a. SQ and Expression b. SQ c. Update Strategy d. Expression 3. Which of the task is used to run a session based on success of the other session? a. Decision b. Event wait c. Email d. Command e. None 4. Types of sources in Informatica? a. Homogenous n Heterogenous b. None c. Cobol n XML d. Flat files e. Flat files and Homogenous n Heterogenous 5. Servers are available in informatica? a. Informatica Server and Workflow server b. Informatica Server and Informatica Repository Server c. Informatica Server d. Workflow server e. Informatica Repository Server 6. While using Pmcmd in cmd line mode, each command must include the connection info of which of the following? a. workflow manager b. Power Center server c. Workflow monitor d. Repository manager e. Designer 7. Workflow montior displays workflows that have run a. once b. twice c. never d.four times e. thrice 8. Mode for handling sessions n workflows? a. server mode b. Wait mode c. Command line mode d. User mode e. Interactive mode 9. Connection details configured in? a. Mapping designer b. Workflow manager c. Workflow monitor d. Repository manager e. Worklet designer Thanks in Advance

0 Answers   CTS,


What is the status code in stored procedure transformation?

0 Answers   Informatica,


What is the difference between a shortcut of an object and copy of an object? Compare them.

3 Answers  


How to find from a source which has 10,000 records, find the average between 500th to 600th record?

3 Answers  


can you please explain me pre session and post session options?

3 Answers   BTBP,


Categories