Problem Statement
Which trade-off best describes surrogate keys (e.g., identity/UUID) compared to natural keys?
Explanation
A surrogate key decouples identity from volatile business fields and keeps foreign keys narrow and stable.
The cost is another column and an extra uniqueness rule if you still need to enforce natural key uniqueness.
Code Solution
SolutionRead Only
CREATE TABLE products ( id BIGSERIAL PRIMARY KEY, sku TEXT UNIQUE );
Practice Sets
This question appears in the following practice sets:
