01Chapter 1: How tables relate: primary keys and foreign keysThis chapter assumes you can write basic SELECT, FROM, WHERE and ORDER BY queries. You should know what a table, row and column are, and understand primary keys and foreign keys. You should also be able to run SQL against a relational database.2 min read
02Chapter 2: Joining three or more tablesThis chapter assumes you can write a single INNER JOIN with an ON condition, use table aliases, and understand primary and foreign keys. The examples use the customers, orders, order_items and products tables.2 min read
03Chapter 3: Grouping and aggregating joined dataThis chapter assumes you know SELECT, WHERE, GROUP BY, primary keys, foreign keys, and INNER JOIN with an ON condition. The examples use the customers and orders tables from the earlier chapters.2 min read