This query selects name from students and class from enrolled, wherever student.id matches enrolled.student_id.

Make sure to pick SELECT student.name, followed by enrolled.class and then student.id =, enrolled.student_id.