When Is a Referential Integrity Used?
A Referential Integrity Is a Database Concept That Is Used to Build and Maintain Logical Relationships Between Tables to Avoid Logical Corruption of Data. It...
A REFERENTIAL INTEGRITY is a database concept that is used to build and maintain logical relationships between tables to avoid logical corruption of data. It is a very useful and important part in RDBMS.
What is referential integrity when can it be applied?
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.
Must Read
Why do we use referential integrity?
Referential integrity (RI)is a method for ensuring the “correctness” of data within a DBMS. ... You must also define what actions are allowed when data is added or modified. This is accomplished with a set of rules applied to each relationship.