Entity integrity
The relational database rule that every row is uniquely identified by its primary key, so primary key values must be unique and no part of a primary key may be null.
Entity integrity is the relational database rule that every row in a table must be uniquely identifiable by its primary key. The key value must be unique within the table, and no part of it may be null, because a missing value identifies nothing. It is one of the two general integrity rules of the relational model. The other is referential integrity, which requires every foreign key to match an existing primary key or be null. Both are enforced by the database management system, which rejects a change that would break them. See also primary key and foreign key.
Multilevel secure databases may need to bend this rule. Under polyinstantiation, two rows may carry the same visible key at different classification levels, so that a low-cleared user is not told that a classified row exists. The multilevel relational models preserve a form of entity integrity by counting the classification as part of the key, but the apparent key a user sees is no longer unique. That relaxation is the integrity price paid for confidentiality.
Exam relevance: questions in this area tend to test recognition: unique, non-null primary keys point to entity integrity, while foreign keys that must reference existing rows point to referential integrity. Candidates are expected to recognise polyinstantiation as a deliberate, controlled relaxation of the apparent key.