Normalization
The transformation of complex user views and data stores to a set of smaller, stable, and easily maintainable data structures
Main objective of the normalization process
To simplify all the complex data items that are often found in user views
Normalization of a Relation is Accomplished in Three Major Steps
First Normal Form (1NF)
Second Normal Form (2NF)
A partial dependency
when the data are dependent on a part of a primary key
Third Normal Form (3NF)
- Remove any transitive dependencies
A transitive dependency
When nonkey attributes are dependent not only on the primary key, but also on a nonkey attribute
Guidelines for Master File/Database Relation Design
Integrity Constraints
Entity integrity
Referential integrity
Domain integrity
Entity Integrity
- If the primary key is a composite key, none of the fields in the key can contain a null value
Referential integrity
Implications of referential integrity
Two ways referential integrity is implemented
Domain integrity
Domain integrity rules are used to validate the data
Two forms of domain integrity
2. Rules, which are defined as separate objects and can be used within a number of fields
Anomalies
Data redundancy
Insert anomaly
Deletion anomaly
Update anomaly
Date redundancy
Insert anomaly
Deletion anomaly
Happens when a record is deleted that results in the loss of other related data
Update anomaly
When a change to one attribute value causes the database to either contain inconsistent data or causes multiple records to need changing
Retrieving and Presenting Database Data