Week 8 - Normalization
Week 8 - Normalization
EXERCISE
4
NORMALIZATION
NAME SECTION
GJPRosales
Page |2
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.
GJPRosales
Page |3
GJPRosales
Page |4
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.
GJPRosales
Page |5
Task 2
Functional dependency:
Task 3
GJPRosales
Page |6
Functional dependency:
V. REFERENCES
Hoffer, J.A., Prescott, M.B., McFadden, F.R. (2016). Modern Database Management
12th Edition, Prentice Hall.
GJPRosales