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

Answer Posted / sehajshangari1235

select distinct m.ename from emp e,emp m
where m.sal>(select avg(e.sal) from emp e,emp m where
e.mgr=m.empno);


call back for more
7204719446

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oracle open database communication (odbc)?

559


What is snapshot is too old? Give and example for better understand.

1100


What are dml statements in oracle?

619


Explain integrity constraints?

665


What is a cognitive schema?

527






How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2728


How to get a create statement for an existing table?

572


How to create a table in a specific tablespace?

543


How to save query output to a local file?

563


How to start a specific oracle instance?

582


What happens if the update subquery returns multiple rows?

608


Can we write insert statement in function in oracle?

534


How many types of cluster table in Oracle?

575


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

546


Explain what are the advantages of views?

612