Normalization
Normalization
CODD’s Rule
NORMALIZATION
• It is a database design technique that organizes tables in a manner that reduces redundancy and dependency of
data.
• Normalization divides larger tables into smaller tables and links them using relationships. The purpose of
Normalization is to eliminate redundant data and ensure data is stored logically.
Objective of Normalization:
“to create relations where every dependency is on the key, the whole key, and not the partial key”.
Also,
any relation that is in BCNF, is in 3NF
any relation in 3NF is in 2NF
and any relation in 2NF is in 1NF
Functional Dependencies
We say an attribute, B, has a functional dependency on another attribute, A, if for any two records, which have
the same value for A, then the values for B in these two records must be the same. We illustrate this as:
AB
Example:
Suppose we keep track of employee email addresses, and we only track one email address for each employee.
Suppose each employee is identified by their unique employee number.
We say there is a functional dependency of email address on employee number:
employee number email address
Transitive dependency
• A relation in 3NF will not have any transitive dependencies(X Y, YZ so XZ) of non-key attribute on a
candidate key through another non-key attribute.