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

Answer Posted / saiprasanna

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

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain integrity constraint?

644


What is integrity and what is constraint??Explain with example

1699


Explain user account with reference to oracle.

532


What happens to the current transaction if a ddl statement is executed?

578


How to store pictures on to the database?

530






How to define a variable to match a table column data type?

580


State and explain about oracle instance?

549


How to export data with a field delimiter?

582


What is a partition in oracle?

545


How to get maxsal , minsal, ename department wise in single query

1017


What are the types of partitions in oracle?

538


Can we call procedure inside function in oracle?

607


How can you use check constraints for self referential integrity?

520


Explain how are indexes update?

621


what is IDE,DMV in sql server?

2248