Advertisement
apl-mhd

Hiredate

Jul 20th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.17 KB | None | 0 0
  1. SELECT e1.EMPLOYEE_ID, e1.FIRST_NAME, COUNT(e1.HIRE_DATE),COUNT(e2.HIRE_DATE)
  2. FROM employees e1
  3. JOIN employees e2 ON e1.HIRE_DATE <e2.HIRE_DATE
  4.  
  5. GROUP by e1.FIRST_NAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement