How to list Top 10 salary, without using Rank Transmission?
Answers were Sorted based on User's Feedback
Answer / ramu
Use source Qualifier Transformation,we can edit the default
sql query and write like as
select * from ( select * from emp
order by sal desc)
where rownum <11;
| Is This Answer Correct ? | 29 Yes | 2 No |
Answer / informatica_learner
use sorter--> expression-->filter
1)sorter descend
2)use sequence generator connected expression to generator
sequence,
3)filter the value sequence number greater than 10
| Is This Answer Correct ? | 27 Yes | 3 No |
Answer / cool
use sorter transformation with ascending,sequence and filter....
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / giri
First use sorter with salary based and sequent generator next filter transformation
Sorter(salary desending order)-----> Sequent genarator
--------->Filter(seq<=10)
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / infa
If Your Source is Flat file then
1. Sort the sal column in Desc order
2. generate the sequence rownumber either by using a sq
genrator or Exp Transformation say v_count+1
3. use a filter condition and give the filter value as
v_count <= 10
4.Load into the target.
If your source is DB
then use below query
SELECT *FROM
(
SELECT *FROM emp
ORDER BY Sal desc
)
WHERE rownum <= 10
ORDER BY Sal;
Thanks
cheers
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rakhee
No need to use any transformation.
Double click on SQ emp
go to property
click on SQL query
browse it
write query
SELECT EMP.EMPNO, EMP.ENAME, EMP.JOB, EMP.MGR, EMP.HIREDATE, EMP.SAL, EMP.COMM, EMP.DEPTNO
FROM
EMP
WHERE
ROWNUM<=10
ORDER BY SAL DESC
validate it
OK
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / jvdwhinfo
Write sql override in the source qualifier t/r.
select columns from
( select columns,rank() over(order by sal desc ) as
rank from emp)
where rank <=10;
let me know if any corrections.
Thanks.
James
| Is This Answer Correct ? | 0 Yes | 2 No |
explain about session partitions ?
Is scd logic we have lookup right to compare the values with source and target,instead of lookup can u have any transformation or any way to do this?
i have a source which relational.I am trying to populate to target flat file with one column for daily date which is sysdate. I want to populate the sysdate coulmn with DD/MM/YYYY format. kindly provide a solution for this..my clear that my target is flat file.
How or for what purpose look up transformation would be useful in Sales or Banking Project? Please reply!
How to update records in Target, without using Update Strategy?
i have source as Column1 101 a 101 b 101 c so i want to load target as column1 ---> 101 abc
Can some one explain me about Telecommunications(wireless) project in Informatica? Thanks in advance
Separate from a database, an information bazaar, and an information stockroom?
write a query following source region sales 1 1000 2 2000 i want the output ?please give solution 1 2 1000 2000
How to join a Flat and Relational Source without using (Joiner, Update and Lookup ) transformations... is it possible? if yes i would like to know how?
how eliminate the duplicates in flat file with out using sorter ,aggregater
How to extract the informatica rejected data?