Skip to content
Theory · Keys and relationships · lesson 6 of 10

Many-to-many relationship

With shops and staff one number is enough: an employee has one shop, and its number fits on the employee's card. Orders and the menu will not work that way. One order may hold several items: a cappuccino and a croissant. And one item is taken in many orders: the cappuccino was ordered three times.

In this lesson

  • Junction table
  • One row, one pair
  • Composite key
  • Common mistake
  • Key points