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 |
how to we create datamart?
write a query to follwoing table amount year quarter 254556 2003 first 546332 2003 second 129034 2003 third 490223 2003 fourth 165768 2004 first 265443 2004 second 510412 2004 third 435690 2004 fourth i want the output year q1_amount q2_amount q3_amount q4_amount 2003 254556 546332 129034 490223 2004 165768 265443 510412 435690
I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 having Empid,firstname,lastname can i union them using Union t/f?
What are the tasks that source qualifier perform?
How to load last n records of file into target table - informatica
what is galaxy repository?
why we use datawarehouse
What is update override?
One of the optimizing technique to improve the session performance is push down optimization,by using push down optimization we push as much as transformation logic to source/target database,but this degrades the d/b performance,how to overcome this?
hi all hi have flat file like below my requirement is empid,ename,sal,loc 101,vamshi,5000,hyd 101,vamshi,5020,hyd 201,raju,5000,hyd 202,ram,4000,hyd 203,kumar,3500,pune 203,kumar,3500,pune 203,kumar,5000,hyd 203,kumar,6000,hyd i want the o/p like this in one target 201,raju,5000,hyd 202,ram,4000,hyd and in second target 101,vamshi,5000,hyd 101,vamshi,5020,hyd 203,kumar,3500,pune 203,kumar,3500,pune 203,kumar,5000,hyd 203,kumar,6000,hyd
Hi, In source I have records like this No name address 10 manoj mum 10 manoj dilhi 20 kumar usa 20 kumar Tokyo I want records in target like shown below No name addr1 addr2 10 manoj mum dilhi 20 kumar usa Tokyo If it is reverse we can do this by using Normalizer transformation by setting occurance as 2. Somebody will say use denoralization technique. But as of my knowledge I couldn’t find any denormalization technique. Is there any concept like that? I tryid this seriously but I could find any idea to implement this. Can any one please help me ? Advance Thanks
how will u load the data to diminision tables and fact tables,what is the hiraraichy why we are using hirarichy