INTERVIEW QUESTIONS ON SUBQUERIES
- list the department names that are
having no employees at all
- display all the employees whose
job is same as scott
- display scott manager’s manager’s
department name
- list employees whose job is same
as scott and their salary greater than smith’s salary
- display all the employees whose
job is same as scott and allen
- display all the employees who are
actual managers
- display who are all the employees
reporting to scott
- display the 2nd maximum salary
- display the 3rd maximum salary
- display all the employees who are
earning more than all the managers(job).
- display all the employees who are
earning more than any of the manager(job)
- select empno, job and salary of
all the analyst who are earning more than any of the manager(job)
- select the department name and
location of all the employees working for clark.
- select all the employees working
for dallas
- display all the employees whose
salary is greater than avg sal of department 20
- display all the employees who gets
maximum salary.
- display first employee record
based on hiredate
- list the employees who has salary
greater than allen
- list the department names that are
having analysts
- list the department names which
are having salesmen in it.
- display the employees whose
location is having at least one ‘o’ in it.
- list the department names that are
having at least 1 employee in it.
- list the department names that are
having at least 4 employees in it
- display the department names which
are having at least 2 clerks in it
- query to display the employee
names who is having maximum salary in dept name "accounting"
- query to display the dept name who
is having highest commission
- query to display all the employees
whose dept number is same as scott.
- query to display all the employees
in 'operations and accounting' dept. list the employees who has salary greater
than miller
- list department name having
atleast 3salesman
- display all employess who do not
have any reporter.
- list all the employees who are
reporting to jones manager
- list employees from
research&accounting having atleast 2 reporting.
- display the departname of the
employee whose name does not starts with s and salary between 1500 to 3000.
- display location of employee whose
salary is minimum salary but salary is greater than 2000
- display the location of an
employee in accounting department.
- display the department location
that are having greater than four employees in it.
- write a query to display all the
employee whose job not same as allen and salary is greater than martin
- display all the employees who is
having location is same as adam's manager
- display the job, manager of
employees who is working for jones?
- display the employee names, higher
date, commission of ford's manager?
- display the number of employees
who are getting salary less than the blake's manager
- list employees who located in
chicago and their commission is zero.
- list employees who work for sales
department and their salary greater
- than average salary of their
department.
- list employees who are working in
research department and they are manager.
- display department name of the
employees who earn commission.
- display department name of the
employee who earn maximum salary and have no reporting manager.
- display employee details who are
reporting to blake and have commission without using null or not null
- list all the deptname and loc of
all the salesman manager-manager's
- list the employee deptname and loc
of all the employees who are clerk ,reporting to blake and salary is lesser
than martin salary
- list the employees who does not
directly report to president,have commission and salary more than max salary of
all the clerk without using null or not null
- list the employees who joined
after 2 years of first employee of the company and more than blake salary
- display location of all the
employees who reporting to blake
- list all the employees whose job
is same as jones and their salary lesser than scott
- display the king's first year
salary and his location with department
- display all the employees of
department 30, 20 with there anual salary and having atleast 3 employees
- display department name which is
having second highest average salary and third highest induvidul salary
- display all the employees who are
earn less than any of the salesman?
- display all the employees who are
joined before the last person?
- display last but one employee
record?
- find 3rd minimum salary in the
employee table
- display all the employees who are
earning more than any of the manager.
- list employees who joined after 4
years of 1st employee of the company and less than blake salary.
- display the department information
of employee who is working for newyork location
- display the salary wise employee
information for deptno 20 in descending order
- display second employee record
- display location of employees,
whose name doesn't start with a and salary between 1000 and 3000.
- display department name of all the
employees who are reporting to blake.
- display martin's manager's
manager's department location.
- display the employee name and
their salary who joined 2 years before the last person hired
- display the employee name,job and
department for those who don't have commission
- display the employee details with
their location who earn maximum commission
- 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.
- display all the department names
and manager who is ward's manager's manager
- display department names and
maximum commission of employee's whose salary is greater than average salary of
all the clerk's
- display the last employee record
with location.
- display the department number who
working in sales department and they are manager.
- display department name of the
employee who earn minmum salary and have reporting manager.
- display hiredate and dname of all
the employees working for sales
- display location and dname of employee
who working as president
- display the dname of employees
whoes salary is maximum salary but lesser than 3000
- display the department name who
are reporting to adams.
- display last employee record.
- display all the employee whose
salary is greater than average salary of department 30.
- display the number of employees
who work for research dept and their salary is lesser than one of the salary in
department in 10.
- display the dname that are having
clerk in it.
- display the department names that
are having atleast one l in it.
- display all the employees who are
joined after blake.
- list the dept name that are having
at least 3 employees but not more than 5 employees in it.
- display the location of all
employees whose reporting manager salary is greater than 2000.
- select the employees whose dname
is having at least two 'e' in it.
- display ename,sal of employees who
are earning more than any of the analyst.
- select all the employees who are
working for chicago
- query to display employee names
who is having minimum salary in department research
- list the department names that are
having salesman.
- list the department names that are
having at least 3 employes in it.
- list employees from research and
accounting department having atleast two reporting
- write a query to display employee
name, job,dname,location of all employees who are working as manager and works
at chicago.
- select ename,dname of employee who
earns 2nd max salary and works for location dallas.
- write a query to display the
employee information who is not taking commission and joined company after july
83.
- list employees from sales and
research department having atleast 2 reporting employees
- list employees who have commission
greater than maximum salary of all the salesman and who do not report to king
directly
- display the location of all the
deaprtments which have employees joined in the year 81
- display department wise minimum
salary which is less than average salary of employees.
- display all the employees who are
reporting to 'jones'.
- display all the employee
information who are living in a location which is having at least 2 'o' in it.
- display the names of employee from
department number 10 with salary greater than that of all employee working in
other departments.
- display the names of employees who
earn highest salary in their respective jobs.
- display the employee number and
name of employee working as clerk and earning highest salary among clerks
- write a query to find smith's
manager's manager hiredate.
- list the number of employees whose
job is salesman working for newyork and chicago
- list the department names in which
the employees are hired between 1st of jan 1981 and 31st dec 1982 with salary
more than 1800.
- display location of the employee
who earn maximum salary and have no reporting manager
- list employees who works for
accounting department and their salary greater than average salary of their
department
- display location of the employee
who earn commission
- list the employees who does not
directly report to president,have commission and salary more than max salary of
all the clerk without using null or not null
- display all the employees whose
salary is greater than avg sal of department 20
- list the employee deptname and loc
of all the employees who are clerk ,reporting to blakeand salary is lesser than
martin salary
- display ename, dname whose job is
manager.
- display employees location who has
some commission.
- display empno, ename, job, whose
job has 'e' in it and display empno in descending order.
- display dname, loc,deptno of
employees who has same reporting manager???
- display avg salary of all
employees whose dept name is accounting???
- display all employees details
whose hiredate is in year 81???
- dispay details of smith including
his location
- display number of employees whose
commission is more than salary.
- list the employees whose daily
salary is greater than 150 and who are joined before 1982 only.
- query to display the employee names
whose name as 2nd character should be 'o'