Chapter 7 Normalization
Chapter 7 Normalization
WITH EXAMPLES
Purpose of normalization
3 anomalies to avoid:
Insertion Anomaly – need to store a value for an
attribute but can not because the value for
another attribute is unknown
Deletion Anomaly – deleting rows may cause a
loss of important information about the entity
Modification/update Anomaly – occurs when a
change of a single attribute in one record requires
changes in multiple records
4
Example
Chapter 6 Normalization
Anomalies in the table 6
Chapter 6 Normalization
Anomalies in the table 7
Chapter 6 Normalization
Functional dependency (FD)
See the CustomerContacts table.
CustomerCode determines multiple Telephone (CustomerCode
->> Telephone) and
CustomerCode determines multiple Address (CustomerCode ->>
Address).
The above are non-trivial dependency, thus need to remove: