Referential integrity in a relational database is the premise that the internal consistency between the different tables within that database is guaranteed. This means that a primary key always exists in a table if it is referenced in a key field in another table. The DBMS ensures consistency and ensures that a transaction that breaks the consistency is not made.