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

Why several tables

A notebook repeating a name and phone becomes customers and orders cards; the orders rows point to the id key

Imagine a coffee shop that writes its orders in one big notebook. Each line holds the order number, the guest's name, their phone, the drink and the price. Anna comes in every month and takes a cappuccino, sometimes with a croissant.

In this lesson

  • What breaks in one table
  • One table, one kind of thing
  • Numbers link the tables
  • Common mistake
  • Key points