Advertisement
apl-mhd

21 fourth assignment

Aug 10th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.27 KB | None | 0 0
  1. SELECT employees.JOB_ID, jobs.JOB_TITLE, FIRST_NAME,SALARY
  2. FROM employees
  3.  
  4. JOIN jobs ON employees.JOB_ID  = jobs.JOB_ID
  5.  
  6. WHERE employees.JOB_ID
  7. IN(
  8. SELECT employees.JOB_ID
  9. FROM employees
  10. GROUP BY employees.JOB_ID)
  11.  
  12. GROUP BY employees.JOB_ID
  13.  
  14. ORDER BY SALARY DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement