Advertisement
apl-mhd

5th highest salary

Jul 22nd, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.17 KB | None | 0 0
  1. SELECT SALARY
  2. FROM employees  e1
  3. WHERE 4 = (SELECT COUNT(*)
  4.          
  5.            FROM employees e2
  6.            WHERE e2.SALARY> e1.SALARY
  7.          
  8.           )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement