Problems / Many to Many Join / Editorial
enrollments
students
student_id
courses
course_id
Many-to-many relationships require a junction (bridge) table. Each row in enrollments represents one student-course pair. By joining through it, you resolve the M:N relationship into a flat result. The junction table is the natural starting point for the query.
Solve Many to Many Join yourself →