الانتقال إلى المحتوى

Tables, keys and relationships

English
More than one table

Real databases split data across several tables. This lesson uses a small shop with two of them:

  • customer — one row per customer (id, name, city)
  • orders — one row per order (id, customer_id, order_date, total)

Storing the customer's name on every order would repeat it again and again. Keeping customers in their own table stores each one once.

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP