Skip to content

Subqueries

cbjjensen edited this page Oct 23, 2014 · 1 revision

Examples:

Find the students who are not enrolled in any classes.

Select student_id
From student.student
Where  student_id NOT IN (select student_id from student.enrollment);
Clone this wiki locally