In this lab, student S209 has an advisor row with no advisor yet (i_id is NULL). A new instructor, Ruth Abara, has no department yet (dept_name is NULL).
- The names of the students who take no course.
- Think before you run it: how many rows does this query return?
sql
SELECT name FROM instructor
WHERE id NOT IN (SELECT i_id FROM advisor);- The names of the instructors who advise nobody.
- The names of the departments (
dept_name) that have no instructor.