SQL Foundations · Lesson 5 of 8 · 15 min

Joining tables

Combine customers, orders and products with INNER and LEFT joins.

Real databases split data into several tables so nothing is stored twice. An order stores only the customer_id; the customer's name lives in customers. A join puts them back together.

INNER JOIN

← Previous: Counting and summarising