Sub Querry Un Solved
Sub Querry Un Solved
4.List employess whose job is same as scott and their salary greater than smith's
salary.
5.Display all the employees whose job is same as scott and allen.
10.Display all the employees who earn more than all the managers(job).
11.Display all the employees who earn more than any the managers(job).
12.Display empno,job and salary of all the analyst who are earning more than
any of the manager
13.select the department name and location of all employees working for clark
15.Display all the employees whose salary is greater than average salary of
deartment 20.
16.select all the employees who gets maximum salary.
21.Display the employees whose location which has atleast one o in it.
22.List the department names that are having at least one employee in it.
24.Display the department names which are having at least 2 Clerks in it.
25.Query to display the employee names who is having maximum salary in Dept
Name "Accounting"
26. Query to display the Dept Name who is having Highest Commission
27. Query to display all the employees whose Dept Number is same as Scott.
28.Display all the employees in 'Operations and Accounting' Dept. list the
employees who has salary greater than miller
33. Display the departname of the employee whose name starts with S and
salary between 1500 to 3000.
36.Display the department location that are having greater than four employees
in it.
37.Write a query to display all the employee whose job not same as Allen and
salary is greater than Martin.
38.Display all the employees who is having location same as Adam's manager.
39. Display the job, manager of employees who is working for Jones
40. Display the employee names, higher date, commission of Ford's manager
41.Display the number of employees who are getting salary less then Blake's
MANAGER salary.
42.List the employess who are located in chicago and their commission is zero.
43.List employees who work for sales department and their salary greater than
average salary of their department.
44.List employees who are working in research department and they are
manager.
46.Display department name of the employee who earn maximum salary and
have no reporting manager.
47.Display employee details who are reporting to blake and have commission
without using null or not null.
48.List all the deprtnaments and loc of all the salesman's manager's manager.
49.List the employee deptname and loc of all the employees who are
clerk ,reporting to blake and salary is lesser than martin salary
51. List the employees who joined after 2 years of first employee of the
company and more than blake salary.
52. Display location of all the employees who are reporting to Blake.
53. List all the employees whose job is same as jones and their salary lesser than
scott.
54. Display the king's first year salary and his location with department.
55. Display all the employees of department 30, 20 with their anual salary and
having atleast 3 employees.
56. Display department name which is having second highest average salary and
third highest induvidul salary.
57. Display all the employees who are earning less than any of the salesman.
58.Display all the employees who are joined before the last person
61.Display all the employees who are earning more than any of the manager.
62. List employees who joined after 4 years of 1st employee of the company
and less than blake salary.
64. Display the salary wise employee information for deptno 20 in descending
order
66.Display location of employees, whose name start with A and salary between
1000 and 3000.
67.Display department name of all the employees who are reporting to Blake.
69. Display the employee name and their salary who joined 2 years before the
last person hired.
70. Display the employee name,job and department for those who don't have
commission
71. Display the employee details with their location who earn maximum
commission
72. Display all the employee whose department is sales and who is earning
some commission (i.e commission is not null or zero)and whose
hired before the last person hired.
73.Display all the department names and manager who is ward's manager's
manager.
76. Display the department number who working in sales department and they
are manager.
77. Display department name of the employee who earn minmum salary and
have reporting manager.
78. Display hiredate and Dname of all the employees working for sales
79. Display Location and Dname of employee who is working as president.
80.Display the Dname of employees whoes salary is maximum salary but lesser
than 3000
83.Display all the employee whose salary is greater than average salary of
department 30.
84. Display the number of employees who work for research dept and their
salary is lesser than one of the salary in department in 10.
86. Display the department names that are having atleast one L in it.
87. Display all the employees who are joined after BLAKE.
88. List the dept name that are having at least 3 employees but not more than 5
employees in it.
90.Select the employees whose dname is having at least two 'E' in it.
91.Display ename,sal of employees who are earning more than any of the
analyst.
92. Select all the employees who are working for CHICAGO
95. List the department names that are having at least 3 employes in it.
96.List employees from research and accounting department having atleast two
reporting.
98. Select ename,dname of employee who earns 2nd max salary and works for
location Dallas.
99. Write a query to display the employee information who is not taking
commission and joined company after July 83
100. List employees from sales and research department having atleast 2
reporting employees