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

Answer Posted / chakradhar

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

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you assign multiple query result rows to a variable?

548


What do you mean by a tablespace?

564


How remove data files before opening a database?

564


IS it possible to built the oracle database without setting the kernal parameters?

1761


What is an oracle wallet?

515






What is Reduced List of Values?

1704


How would you best determine why your MVIEW couldnt FAST REFRESH?

1436


How to add a new column to an existing table in oracle?

588


What is difference between cartesian join and cross join?

590


How to delete a user account in oracle?

551


Why is oracle used?

557


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

1699


What to do if dba lost the system password?

597


What privilege is needed for a user to create indexes in oracle?

575


What are a collation and state the different types of collation sensitivity?

549