waht is referencial integrity?

Answer Posted / arijitnit

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. The 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 defined by the definition of the
referential integrity constraint.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why use resource manager in Oracle?

747


Differentiate between post-database commit and post-form commit?

623


Is there a combination of "like" and "in" in sql?

671


What is a user account in oracle?

726


How do we represent comments in oracle?

709






What are internal user account in oracle?

646


How to use attributes of the implicit cursor in oracle?

651


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

706


Who developed oracle & when?

654


What are set operators?

728


What is null value in oracle?

727


What is different types of joins?

664


Can objects of the same schema reside in different tablespace?

666


What is the difference between Delete, Truncate and Drop in Oracle?

698


How do I know if oracle is installed on windows?

553