What does many-to-many relationship mean?

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.

nounCommon term

Databases & SQL vocabulary · Data Modeling and Normalization

It needs a third table in between to store the pairs.

In Turkish: çoka-çok ilişki, çok-çok ilişkisi

Also used in: Software Engineering

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

  1. Products and tags have a many-to-many relationship, so we added a product_tags table.

  2. 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

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: