Session Four
Normalization Part II, 
Integrity and Review for the Midterm

Topics


Normalization Review

Do Not Repeat;
"The Key, the whole key 
and nothing but the key, 
so help me Codd."
No Repeating Groups. 
No Partial Key Dependencies,
No Transitive Dependencies.
Review sheet

Integrity Constraints and Anomalies

Data Integrity refers to the accuracy and consistency of the data and define the relationally correct state for a data-base.
An anomaly occurs when integrity rules have been violated and this results in lost or inaccurate data.

In order for a data base to have integrity (to ensure that users perform only operations which leave the database in a correct, consistent state) it needs to obey several rules called "Integrity Constraints".

The three basic areas for these rules are:

1. Primary Key Constraints
2. Referential Integrity Constraints
3. Domain Integrity Constraints
1. Primary Key Constraints - Unique and Not Null. 2. Referential Integrity Constraints - Only Valid Relationships. 3. Domain Integrity Constraints - Set of Values for an Attribute. All integrity constraints should be enforced by the DBMS or application software.