There is a table with emp salary column how to get the fields belongs to the salary greater than the average salary of particular department.
Write a query

Answer Posted / murali krishna udayagiri

SELECT E.* FROM EMP E ,(SELECT DEPTNO,AVG(SAL) AVGSAL FROM
EMP GROUP BY DEPTNO) E1
WHERE E.SAL>E1.AVGSAL
AND E.DENPTNO=E1.DEPTNO;

Thanks,
Murali Udayagiri

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Active and Passive transformation?

631


I have a mapping loading 100 records and it failed on 20th record. how to recover it without changing anything.(in prod where we don't have any access).. (the session should should start from 21 record)

1075


in reporting we add some new objects,how we get the count of the newly added objects to the report

1750


How do you take back up of repository?

717


What are the components of the workflow manager?

636






What are the performance considerations when working with aggregator transformation?

674


How can we use batches?

601


can anyone suggest best free Talend data integration training online

1256


What are the tasks that source qualifier perform?

629


What is rank transformation?

577


can anybody send me some real time screenshots of mapping in informatica powercenter. i will be vary thankful to him. my e-mail id :- prakashkumar.kumhar@gmail.com

4309


What are the databases that informatica can connect to windows?

576


Performance tuning( what you did in performance tuning)

1484


Implementation methodology

1259


Under what conditions selecting sorted input in aggregator will still not boost session performance?

631