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

How to create a stored program unit?

576


Is it possible to insert comments into sql statements return in the data model editor ?

2063


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

1800


What is the sid in oracle?

533


What are the oracle differences between nvl and coalesce

511






How to connect to the server with user account: sys?

560


How to list all tables in your schema?

603


In AP we done Customizations for Late Payments Charges. For Reporting Purpose What are the Documents Prepared for Customer Understanding??

1202


What is the implicit cursor in oracle?

562


How to loop through data rows in the implicit cursor?

537


What are the execution control statements in oracle?

600


State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

603


How remove data files before opening a database?

556


Which environment variables are absolutely critical in order to run the OUI?

1646


How to shutdown your 10g xe server?

616