Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. 10
  2.  
  3. SELECT department_id, last_name, job_id
  4. FROM employees
  5. WHERE department_id in (select department_id from departments WHERE department_name = 'Executive');
  6.  
  7. 8
  8.  
  9. SELECT employee_id, last_name, salary
  10. FROM employees
  11. WHERE salary > (select avg(salary) from employees) and
  12. department_id in (select department_id from employees where last_name '%u%');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement