IT lexicon › Database › Key Attribute

Key Attribute

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

An attribute (or set of attributes) in the Entity-Relationship Model that uniquely identifies an entity, also called an "identifier".

In ER diagrams, key attributes are marked by underlining them. A student can be uniquely identified by their ID number (key attribute), but name is not sufficient because two students could have the same name. An entity can have multiple candidate keys, but one is typically chosen as primary. When converting from an ER model to a relational model, key attributes become primary keys (and possibly unique constraints) in the database.

Correctly identifying which attributes serve as keys is a critical part of data modeling and ensures data integrity.

← Back to the lexicon