Skip
Arish's avatar

174. Practice - LEFT JOIN 2


Exercise: Find Unmatched

Find students without courses.

Solution

sql
1SELECT s.name
2FROM students s
3LEFT JOIN courses c ON s.course_id = c.id
4WHERE c.id IS NULL;