Display those managers salary greater than the average
salary of his employees?(Based on oracle standard Emp table)

Answer Posted / pradeep

select ename,sal,mgr
from emp a
where sal > (select avg(sal)
from emp b
where b.mgr = a.mgr)

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I combine multiple rows into a comma-delimited list in oracle?

581


How many types of segments in Oracle?

529


How to check the server version in oracle?

611


how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?

4668


 How to use an oracle sequence generator in a mapping?

570






Explain the use of Merge statement in oracle 11g

595


Can we store pictures in the database and if so, how it can be done?

592


How to convert characters to times in oracle?

595


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1456


How to rename an index?

588


What are the database administrators utilities available?

578


How to load excel data sheet to oracle database

586


What are the differences between interval year to month and interval day to second?

552


How data locks are respected in oracle?

574


What happens if recursive calls get out of control?

548