Lab6 Normalization
Lab6 Normalization
DEPARTMENT
EXERCISE
6
NORMALIZING DATA MODEL
<STUDENT NAME>
<SECTION>
<DATE>
I. OBJECTIVES
What is Normalization?
Normalization is a formal process for deciding which attributes should be grouped
together in a relation.
Steps:
1. Remove multivalued attributes (1NF)
2. Remove partial dependencies (2NF)
3. Remove transitive dependencies (3NF)
Functional dependency
The value of one attribute (the determinant) determines the value of another attribute.
Partial dependencies are removed, but there are still transitive dependencies.
Third Normal Form (3NF)
For a relation to be in 3NF, it is must be in 2NF and no transitive dependencies
(functional dependencies on non-primary key attributes).
Overview
Patients visit the hospital and their visit history is maintained by the hospital staff.
Different physicians may be available on different dates. They diagnose and treat the patients
of all categories. Some of treatments are free while others are to be paid by the patients.
Sample data of the case is shown in the following chart.
Task 1
Draw a dependency diagram and transform the above data to first normal form by
eliminating repeating groups such that each row in the relation is atomic. Be sure to create an
appropriate name for the relation and identify primary key/s.
Functional dependency:
Identify the partial and transitive dependencies
Task 2
Remove partial dependencies to convert the relation in Task 1 to second normal form. Be
sure to create an appropriate name for the relation and identify primary key/s.
Functional dependency:
Convert the relations in Task 2 to third normal form by removing transitive dependencies.
Be sure to create an appropriate name for the relation and identify primary key/s.
Functional dependency:
______________________________________________________________________________
______________________________________________________________________________
_____________________________________________________________________________
IV. REFERENCES
Hoffer, J.A., Prescott, M.B., McFadden, F.R. (2007). Modern Database Management 8th
Edition. New Jersey: Pearson Prentice Hall.