What is foreign key?
A column that holds the primary key of a row in another table, to point to it. The database refuses to point to something that doesn't exist.
Also called: foreign keys, FK, FKs.
An analogy
A mail carrier who only delivers to addresses that exist: each delivery points to the record of who received it.
Where it shows up in the course
- Why the Books Exist
- DDL and constraints
- Normalization (3NF)