1.Students and their courses
IntermediateReturn each student's name and course for students who are enrolled in at least one course.
Show hint
Only matching rows are needed, so an INNER JOIN on student_id is enough.
Show solution
SELECT s.name, e.course
FROM students s
INNER JOIN enrollments e ON s.student_id = e.student_id
ORDER BY s.name, e.course;name | course
------+-------
Asha | Python
Asha | SQL
Meera | Python
Ravi | SQL