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...
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?
- Perform Risk-Based Validation.
- Select Appropriate System and Service Providers.
- Audit your Audit Trails.
- Change Control.
- Qualify IT & Validate Systems.
- Plan for Business Continuity.
- Be Accurate.
- 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.