Download Why are entity integrity and referential integrity important in a

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Information privacy law wikipedia , lookup

Data model wikipedia , lookup

Versant Object Database wikipedia , lookup

PL/SQL wikipedia , lookup

SQL wikipedia , lookup

IBM Notes wikipedia , lookup

Business intelligence wikipedia , lookup

Concurrency control wikipedia , lookup

Entity–attribute–value model wikipedia , lookup

Database wikipedia , lookup

Data vault modeling wikipedia , lookup

Clusterpoint wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

Transcript
Why are entity integrity and referential integrity important in a database?
Referential and entity integrity are crucial to preserving valid relationships between
tables and data within a database. SQL queries will begin to fail if the data keys that
connect the dots between their relationships do not match. If an entity or table is relying
on the keys in another entity or table, then relationships between the two can be lost if
bad data is entered into one location.
For instance, referential integrity can be used to ensure foreign key values are valid. For
instance, a database table listing all the parts installed on a specific aircraft should have
referential integrity connecting the part numbers to a table listing valid part numbers for
that aircraft so that in the event of a bad part number being “fat-fingered” into the
database, the RBDMS will return an error concerning the bad data (IBM 2001).
IBM (2001). DB2 Version 9.1 for z/OS. Retrieved from ibm.com July 19, 2009 at:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db29.doc.intro/dsn
itk13.pdf?noframes=true