You are on page 1of 2

1.

select first_name,last_name,job_id
from employees
where job_id IN( select job_id from employees where FIRST_NAME LIKE '%Luis%');
2.select first_name,last_name,hire_date
from employees
where hire_date >=( select hire_date from employees where FIRST_NAME LIKE '%Luis
%');
3.select first_name,last_name
from employees
where salary > ( select MAX(salary) from employees where job_id LIKE '%CLERK%');
4.select department_name,location_id
from departments
where location_id = ( select location_id from locations where city = 'Seattle');
5.select department_name,location_id
from departments
where location_id = ( select location_id from departments where department_name
= 'Finance' )
6.select first_name,last_name,department_id
from employees
where department_id = ANY ( select department_id
from employees where last_NAME LIKE 'A%');
7.select first_name,last_name
from employees
where employee_id IN( select manager_id from employees)
8.select first_name,last_name
from employees
where employee_id NOT IN( select manager_id from employees where manager_id IS N
OT NULL)
9.select location_id
from location_id NOT IN
(select location_id from departments);
10.select first_name,last_name,hire_date,salary
from employees
where salary = (select salary from employees where last_name = 'Kochhar') AND NV
L(COMMISSION_PCT,0) = (select NVL(COMMISSION_PCT,0) from employees where last_na
me = 'Kochhar' )
11.select first_name,last_name,salary,department_id
from employees e
where salary = (select MIN(SALARY) from employees
where department_id = e.department_id)
12.select first_name,Last_name,hire_date
from employees
where hire_date > (Select MAX(hire_date)
from employees
where department_id = 30)
13.select first_name,last_name
from employees
where salary in ( select salary

from employees
where employee_id = 199) AND department_id IN (Select department_id from employe
es where last_name = 'Taylor');
14.select last_name,salary,department_id
from employees
where salary = (select max(salary)
from employees where department_id = e.department_id);
15.select last_name,salary
from employees
where salary >(select max_salary from jobs
where (job_id = e.job_id)/2;
16.select first_name,last_name,salary
from employees
where manager_id IN (select employee_id from employees where last_name LIKE '%Ki
ng%')

You might also like