SpinTheMic
Pro

Interview practice question

Students and courses

Data Engineering · Data Modeling · Beginner

Model students enrolling in courses, where a student can take many courses and a course has many students.

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Students and courses are many-to-many.
  • Use an enrollment table with student_id and course_id.
  • Enrollment can hold its own attributes like enrollment date and grade.
  • Composite or surrogate key on enrollment.
  • In analytics, enrollment becomes a fact table.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics