Interview Questions   Tutorials   Discussions   Programs   

DB2 - What is referential integrity?

asked mar August 3, 2014 06:27 AM  

What is referential integrity?


1 Answers

answered By Mswami   0  
Referential integrity is the automatic enforcement of referential constraints that exist between a reference table and a referencing table. When referential integrity is enforced, the value of a foreign key exists as  a primary key value in the reference table. In other words, when referential integrity is enforced, all of the foreign key values in, for example, the  “department code” column in an “employee” table exist as primary key values in a “department” table.

In other words, "Referential integrity" refers to the consistency that must be maintained between primary and foreign keys, i.e. every foreign key value must have a corresponding primary key value. 
   add comment

Your answer

Join with account you already have



 Write A Tutorials
Online-Classroom Classes

  1 person following this question

  1 person following this tag

  Question tags

Asked 1 year and 1 month ago ago
Number of Views -155
Number of Answers -1
Last updated
2 years and 2 months ago ago

  Similar questions

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!