How Do You Maintain Referential Integrity

Referential integrity requires that a foreign key must have a matching primary key or it must be null. This constraint is specified between two tables (parent and child); it maintains the correspondence between rows in these tables. It means the reference from a row in one table to another table must be valid.

How do you maintain integrity in a database?

  1. Perform Risk-Based Validation.
  2. Select Appropriate System and Service Providers.
  3. Audit your Audit Trails.
  4. Change Control.
  5. Qualify IT & Validate Systems.
  6. Plan for Business Continuity.
  7. Be Accurate.
  8. Archive Regularly.

How referential integrity is maintained within the relational data model?

Referential integrity is a property of data stating that all its references are valid. … Some relational database management systems (RDBMS) can enforce referential integrity, normally either by deleting the foreign key rows as well to maintain integrity, or by returning an error and not performing the delete.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest