What is referential integrity? What are the advantages of it?
Answer Posted / anand
Referential integrity
Referential integrity in a relational database is
consistency between coupled tables. Referential integrity
is usually enforced by the combination of a primary key or
candidate key (alternate key) and a foreign key. For
referential integrity to hold, any field in a table that is
declared a foreign key can contain only values from a
parent table's primary key or a candidate key. For
instance, deleting a record that contains a value referred
to by a foreign key in another table would break
referential integrity. A relational database management
system (RDBMS) enforces 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. Which method is used would be determined by the
referential integrity constraint, as defined in the data
dictionary.
| Is This Answer Correct ? | 44 Yes | 7 No |
Post New Answer View All Answers
Working with TLogs
Explain the concepts and capabilities of sql server?
Define left outer join in sql server joins?
What does sql server mean?
What is join query?
How you trouble shoot when any job fails
What is the standby server?
What are the export options of ssrs?
What is the difference between stored procedure and user defined functions?
How would you use user_constraints table in DB?
What are advantages of ssrs or why we should use ssrs?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
Explain filtered indexes?
Explain the difference between control flow and data flow?
What are the results of running this script?