Practice: Unenrolled Students
LEFT JOIN and IS NULL find rows with no match.
Example
SELECT s.name FROM students s LEFT JOIN enrolments e ON e.student_id = s.id WHERE e.student_id IS NULL ORDER BY s.name;Result
name Esi Sipho Wanjiru
Exercise
No match test.
WHERE e.student_id NULL
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.