How to list Top 10 salary, without using Rank Transmission?

Answers were Sorted based on User's Feedback



How to list Top 10 salary, without using Rank Transmission?..

Answer / raka

SQL:
SELECT id, salary from <table name> where rownum <= 10
ORDER BY salary DESC;

Is This Answer Correct ?    17 Yes 20 No

How to list Top 10 salary, without using Rank Transmission?..

Answer / abhilash

do following steps

1.in source qualifier override the query with
"order by salary desc"

2. use seq gen tr on it and give column name as "sid"

3. next use filter tr. in that write condition like "sid<=10"

Is This Answer Correct ?    1 Yes 4 No

How to list Top 10 salary, without using Rank Transmission?..

Answer / amedela chandra sekhar

write sql query in the source qualifier t/r

sql override

select * from(select dense_rank () over (order by sal desc
nulls last)as rnk,emp.* from emp)where rnk<=10;

Is This Answer Correct ?    0 Yes 3 No

How to list Top 10 salary, without using Rank Transmission?..

Answer / krishnakanth

I hope the simpliest way is what Raka #4 suggested
We can override in the SQL override in the source qualifier
transformation.

Is This Answer Correct ?    3 Yes 7 No

How to list Top 10 salary, without using Rank Transmission?..

Answer / murugan

only use the Aggregator function.....

first(sal>=values)

Is This Answer Correct ?    0 Yes 14 No

How to list Top 10 salary, without using Rank Transmission?..

Answer / sarvesh

if it is flat file ur answer is write,if it is relational
souce then go to source qualifier properties there u write
the query like
select distinct a.* from t1 a where 10=(select sal from
t1 b where a.sal>b.sal)
i think it is working

Is This Answer Correct ?    1 Yes 24 No

Post New Answer

More Informatica Interview Questions

why u go for dimensions ?

3 Answers   TCS,


Explain direct and indirect flat file loading (source file type) - informatica

0 Answers   Informatica,


what type of problem you faced insales project or insurance project

1 Answers   Sony,


What is the difference b/w natural key and surrogate key

1 Answers  


what is the flow?

1 Answers  






get me the resultant input:- 1 x,y,z output:- 1 x 2 a,b 1 y 3 c 1 z 2 a 2 b 3 c

3 Answers   Infosys,


What is the sequence generator transformation in informatica?

0 Answers  


How i can upload the MainFrame source For Informatica ?

1 Answers  


Hi Friends, I want lo truncate my records from target before loading current month data,but i dont have permission to truncate with truncate option if u know any other way please give your valuable input for this. Thanks Abhishek

5 Answers   CSC,


why we use datawarehouse

0 Answers   HCL,


how to identify new and old values in source qualifier or any other transformations using informatica

2 Answers  


Dependecy Errors in Informatica ? Do u got any dependency problems while running session? Can any one Explain Clearly.

2 Answers   CTS,


Categories