This query uses a LEFT JOIN to select all students, along with their classes if they enrolled in any.

Make sure to pick student, followed by LEFT JOIN, and finally enrolled.