Databases · Junior · Question 4 of 75

How do you model a many-to-many relationship, such as students and courses?

Explanation

The junction table can also hold data about the relationship itself, like the enrollment date or a grade. A comma-separated list can't be indexed, joined or constrained properly.

Further reading

Problem with a question

Databases · Junior · question 4

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz