dms_67a5c1fac691aA4 - Nested Query
dms_67a5c1fac691aA4 - Nested Query
Nested Queries
1. List the employee’s Name, Job, Salary, and Department number for those employees who are
working in SMITH’S department.
2. Display the Salary of all employees according to Department and Job those are getting salary more
than the average salary of the company.
3. Display Deptno, Empno and Name of employees who are working in OPERATIONS department.
4. List the Ename, Job, Annual salary, and Deptno for employees who earn more than JONES salary.
5. Display the Name and Joining dates of employees who have joined after MILLER.
6. Find the employees names who earn salary equal to the minimum salary in the company.
7. Find all employees who have the same job as that of BLAKE.
8. Who is paid the most in the company?
9. Find all the employees who earn more than every employee in department 30.
10. Display employees who earn more than the lowest salary in department 30.
11. Display the departments which have an average salary more than that of department 30.
12. Display the Job with the highest average salary.
13. For each employee, display the number of days passed since the employee joined in the company.
14. Display the name and department location of employees who are working in the department
located at CHICAGO.
15. Display the name, job and hiredate of employees whose salary is greater than the highest
salary of employees working in SALES department.
16. Give details of the employee who is getting the second highest salary in the company.
17. Count the departments where the number of employees is more than 5.
18. Count the number of employees those are not getting any commission in the company.
_______________________
(Signature of the Teacher)