Referential Integrity
Referential integrity is a data quality property that keeps the links between related tables valid and consistent. In practice, it means that when one record points to another, the record it points to actually exists. This helps ensure that data relationships remain accurate as information is added, changed, or removed.
Referential integrity is a property of relational data requiring that all references between tables remain valid, typically expressed as the logical dependency of a foreign key value on an existing corresponding primary key (or otherwise unique key) value. Under this constraint, a foreign key must either match a value present in the referenced table or, where permitted, be null; database management systems commonly enforce this through declared foreign key constraints and associated actions on update or delete. As a data quality and governance concern, referential integrity supports the consistency and accuracy of relationships across a dataset, and it is distinct from information security controls (confidentiality, integrity in the CIA sense, and availability), though the two domains may overlap where data integrity is a shared objective. This entry addresses the concept as a data structure and quality property only; it does not cover privacy-specific obligations, and referential integrity alone does not render data anonymous, non-personal, or out of regulatory scope.
Why it matters
Referential integrity underpins the reliability of any dataset built on related tables. When references between tables remain valid, downstream processes such as reporting, analytics, reconciliation, and record retrieval can generally trust that a record pointing to another actually resolves to something that exists. When those links break, the result is orphaned records, inconsistent joins, and figures that no longer reconcile, all of which erode confidence in the data and can drive incorrect operational or governance decisions.
From a data governance standpoint, referential integrity is part of the broader data quality picture that also includes accuracy, completeness, and lineage. Poor referential integrity typically surfaces as accountability and stewardship problems: unclear ownership over how records are created, updated, and deleted, and inadequate controls around cascading changes. Because governance frameworks generally expect accountability to be demonstrable through evidence rather than stated intent, maintaining and monitoring referential integrity can form part of the evidentiary basis for data quality assurance.
It is important not to overstate the reach of this property. Referential integrity is a structural and data quality characteristic; it does not, on its own, address confidentiality or availability, nor does it satisfy privacy-specific obligations. Maintaining valid references between tables does not make data anonymous, non-personal, or out of regulatory scope, and it should not be treated as a substitute for security or privacy controls.
Who it's relevant to
Inside Referential Integrity
Common questions
Answers to the questions practitioners most commonly ask about Referential Integrity.