Create a table enrollments with student_id INTEGER, course_id INTEGER and enrolled_on DATE. A student can join many courses, but the same student–course pair may appear only once. Make the pair the primary key.
This question starts with an empty database.
Run your code to see the output here.