Database Normalization Slides
Database Normalization Slides
Database Normalization Slides
Normalization
Definition
What Is Database Normalization?
Anomalies: Problems addressed by Normalization
10/9/20 4
Insertion Anomaly
This occurs when you can’t add row into a
table
Until the new faculty member is assigned to teach at least one course, his
details cannot be recorded.
10/9/20 5
Deletion Anomaly
This occurs when you can’t delete row into
a table, when the row you want to delete
contains a important piece of information,
or when the row you delete is the last one
in the table that contains this piece of
information.
10/9/20 6
Deletion Anomaly
10/9/20 7
Update Anomaly
These occur when there is unnecessary
redundancy in the data.
10/9/20 8
Concept of normalization and the
most common normal forms.
To Begin
/
Second Normal Form (2NF)
It is in the 1NF
Every column that is not a part of the
primary key is functionally dependent on
the entire primary key.
10/9/20 17
Functional Dependency
Attribute B is functionally dependent on
attribute A if, for each value of attribute A,
there is exactly one value of attribute B.
Example, Employee Address is
functionally dependent on Employee ID,
because a particular Employee ID value
corresponds to one and only one
Employee Address value.
Employee Address Employee ID
10/9/20 18
Third Normal Form (3NF)
It is in the 2NF
All of its columns that are not part of the
primary key are mutually dependent
The 3NF is concerned with the removal of
transitive dependencies in tables.
There exist transitive dependency when a
column is dependent on a column not the
primary key.
10/9/20 20
Transitive Dependency
A transitive dependency is an indirect
functional dependency, one in which X→Z
only by virtue of X→Y and Y→Z.
Example:
Column1 is directly dependent on the primary key
column; another column, say Column2, is indirectly
dependent on the primary key column because of its
dependency on Column1.
The dependency of Column2 to the primary key is by
virtue of its dependency on Column1.
10/9/20 21
name crs yr dept dean subj1 subj2 subj3 subj4