Home > Software > Data-Warehouse > Informatica
Interview Questions   Tutorials   Discussions   Programs   

Informatica - it should be done through yhe mapping only find out the employees which having the sal >= avg(sal) of that particular dept




411
views
asked suresh-362 April 25, 2014 10:57 PM  

it should be done through yhe mapping only find out the employees which having the sal >= avg(sal) of that particular dept


           

6 Answers



 
answered By   0  
we can find it using correlated sub-query, -- the salaries of employees greater than avg(salary) of each deptartment 

SELECT E.ENAME, E.JOB, E.DEPTNO, E.SAL FROM DIM_EMP E WHERE 
e.sal > (select avg(b.sal) from dim_emp b where b.deptno=e.deptno) order by e.deptno; 
flag   
   add comment

 
answered By   0  
we can find the salaries of employees greater than avg(salary) of each deptartment using correlated sub-query

SELECT E.ENAME, E.JOB, E.DEPTNO, E.SAL FROM DIM_EMP E WHERE 
e.sal > (select avg(b.sal) from dim_emp b where b.deptno=e.deptno) order by e.deptno; 
flag   
   add comment

 
answered By   0  

flag   
   add comment

 
answered By   0  
flag   
   add comment

 
answered By   0  
use below query in  SQ and then connect expression to Target 

select a.ename,a.eno,b.esal,b.deptno from emp A,select avg(esal) esal,deptno from emp group by deptno) b
where A.sal >=B.sal and A.deptno = B.deptno
flag   
   add comment

 
answered By   0  
use below query in  SQ and then connect expression to Target 

select a.ename,a.eno,b.esal,b.deptno from emp A,select avg(esal) esal,deptno from emp group by deptno) b
where A.sal >=B.sal and A.deptno = B.deptno
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert