Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT INSTRUCTOR.GIVEN_NAME, INSTRUCTOR.FAMILY_NAME, INSTRUCTOR.DEPARTMENT
- FROM INSTRUCTOR
- WHERE INSTRUCTOR.SALARY > ALL(
- SELECT AVG(INSTRUCTOR.SALARY)
- FROM INSTRUCTOR
- GROUP BY INSTRUCTOR.DEPARTMENT)
- I have an instructor who has a salary OF 42000, AND the
- average FOR his department IS 40500, but he's not showing up
- in my answer list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement