Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT t.TEAM_NAME
- FROM teams t
- JOIN employees emp on t.TEAM_ID = emp.TEAM_ID
- GROUP BY t.TEAM_NAME
- HAVING MIN(emp.DATE_OF_BIRTH) >(SELECT e.DATE_OF_BIRTH
- FROM employees emp WHERE EMP_NAME = 'FRESH');
Advertisement
Add Comment
Please, Sign In to add comment