Many-to-many relationship
Meaning in databases & SQL, with examples
In databases & SQL, many-to-many relationship means: A link where many rows in one table can relate to many rows in another, like students and courses. It needs a third table in between to store the pairs.
In Turkish: çoka-çok ilişki, çok-çok ilişkisi
How it is used
The table in the middle has many names: junction table, join table, bridge table, link table or associative table. It usually holds two foreign keys that together form its primary key, and sometimes extra data such as the date a student enrolled.
Example sentences
Products and tags have a many-to-many relationship, so we added a product_tags table.
In an interview, explain how you would store a many-to-many relationship between users and roles.
Common collocations
- many-to-many relationship
- junction table
- bridge table
- N:M relationship
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Data Modeling and Normalization
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
