Caffeinated Coder
Book an appointment
Lesson 02 · SQL

Tables, rows and keys

A relational database keeps each kind of thing in its own table of rows and typed columns. Rows have no order, so a primary key names each row, and a foreign key lets a row in one table point at a row in another. Watch PostgreSQL refuse a duplicate key and a key that points nowhere, and store the row that keeps both rules.

12 min10 steps5 questionsBeginner
Fig 2 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.