||This article may require cleanup to meet Wikipedia's quality standards. (December 2008)|
The entity integrity constraint states that no primary key value can be null. This is because the primary key value is used to identify individual tuples in a relation. Having null value for the primary key implies that we cannot identify some tuples.This also specifies that there may not be any duplicate entries in primary key column key word.
The referential integrity constraint is specified between two relations and is used to maintain the consistency among tuples in the two relations. Informally, the referential integrity constraint states that a tuple in one relation that refers to another relation must refer to an existing tuple in that relation. It is a rule that maintains consistency among the rows of the two relations.
Domain constraints allows us to test the values inserted into the database and to test the queries to make sure comparisons made are appropriate.
User Defined Integrity
A business rule is a statement that defines or constrains some aspect of the business. It is intended to assert business structure or to control or influence the behavior of the business. E.g.: Age>=18 && Age<=60
|This article does not cite any references or sources. (July 2011)|
|This computing article is a stub. You can help Wikipedia by expanding it.|
|This database-related article is a stub. You can help Wikipedia by expanding it.|