133k views
4 votes
A ________ relationship is a relationship between tables in which one record in one table has many matching records in a second table, and one record in the related table has many matching records in the first table.

A) one-to-many
B) one-to-one
C) many-to-many
D) This doesn't apply to any relationship type.

User Vanddel
by
7.5k points

1 Answer

5 votes

Final answer:

A many-to-many relationship between two database tables means that multiple records in one table can match multiple records in the other, often utilizing a junction table to manage the relationships.

Step-by-step explanation:

The question asks to fill in the blank with the correct type of relationship between tables in a database. The correct answer is C) many-to-many. A many-to-many relationship occurs when one record in a first table can relate to many records in a second table and vice versa, one record in the second table can have many matching records in the first table. For instance, in a school database, a 'Students' table might have many entries for each class like 'Biology' or 'Mathematics' in the 'Classes' table, and each 'Class' can have many 'Students' enrolled in it. This kind of relationship usually requires a junction table, also known as a linking table, which contains the foreign keys from both the related tables to uniquely identify the link between them.

User Jjungnickel
by
7.8k points