Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  SELECT INSTRUCTOR.GIVEN_NAME, INSTRUCTOR.FAMILY_NAME, INSTRUCTOR.DEPARTMENT
  2.   FROM INSTRUCTOR
  3.   WHERE INSTRUCTOR.SALARY > ALL(
  4.    SELECT AVG(INSTRUCTOR.SALARY)
  5.     FROM INSTRUCTOR
  6.     GROUP BY INSTRUCTOR.DEPARTMENT)
  7.  
  8.  
  9. I have an instructor who has a salary OF 42000, AND the
  10. average FOR his department IS 40500, but he's not showing up
  11. in my answer list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement