IT lexicon › Database › Candidate key

Candidate key

Database På svenska → Updated: 2026-11-10

A set of one or more attributes that could uniquely identify a row, one of potentially several options before a primary key is chosen.

Candidate keys are central to normalization theory. A table might have multiple candidates—both an ID number and an email address, for instance—but only one becomes the primary key. The others can become surrogate keys or be used as foreign keys in other tables to enforce referential integrity.

The concept formalized Codd's relational model in the 1970s, establishing how data should be organized to avoid redundancy. Modern normalization always begins by identifying all candidate keys before deciding which is best to be primary.

← Back to the lexicon