A parent key gives child rows something exact to point at.
highlighted = computed this step
Rows need stable ids
A key column gives each parent row a stable value that other rows can point at.
key value identifies a row
Show both tables
The parent table has 3 rows, and the child table has 3 rows.
parent rows=3
Key examples are tiny finite table checks; SQL dialects, indexing, query planning, deferrable constraints, enforcement timing, performance, and product behavior are out of scope.
Read the key columns
The key-columns table names the parent id and the child foreign-key column.
parent key and child key
Summary
This book checks tiny table facts only; it does not model a database product.