7 Normalization
7 Normalization
Well-Structured Relations
§ A relation that contains minimal data redundancy and
allows users to insert, delete, and update rows without
causing data inconsistencies
§ Goal is to avoid anomalies
§ Insertion Anomaly–adding new rows forces user to create
duplicate data
§ Deletion Anomaly–deleting rows may cause a loss of data
that would be needed for other future rows
§ Modification Anomaly–changing data in a row forces
changes to other rows because of duplication
Y is functionally dependent on X
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Functional Dependency (2)
Ssn→Ename
The value of an employee’s Social security number
uniquely determines the employee name
Pnumber →{Pname, Plocation}
The value of a project’s number (Pnumber)
uniquely determines the project name and
location
{Ssn, Pnumber}→Hours
A combination of Ssn and Pnumber values
uniquely determines the number of hours the
employee currently works on specific project
Student
courses
C# c_name hours
SSN P# Hours
Sales Order
Fiction Company
202 N. Main
Mahattan, KS 66502