Referential Integrity

Informally speaking, referential integrity concerns the relationship between the values in logically related tables. In the relational model, it means guaranteeing the logical consistency of the database by making sure that the values of a primary key and the foreign keys that point to it always match.

Chapter 2 explains that foreign key/primary key relationships are planned during the design of a database; they represent the logical relationships among data (although their presence in no way limits the possible access paths among the data). In considering referential integrity, the question is what the database system can do to guarantee the maintenance of matching values between foreign keys and the primary key to which ...

Get Practical SQL Handbook, The: Using SQL Variants, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.