Chapter 5 - Normalization of Database Tables
Chapter 5 - Normalization of Database Tables
Normalization of
Database Tables
BY PN.SRI YUSMAWATI MOHD
YUNUS
FSKM UiTMCNS
Learning Objectives
l e a r n
u wi l l
Yo
What normalization is and what role it plays in the database design
process
Normal forms
First normal form (1NF) Second normal form (2NF) Third normal form (3NF)
Objective:
To ensure that each table conforms to the concept of
well-formed relations
Normalization
Process
Each table represents a single subject
Starts by:
Identifying the dependencies of a relation Progressively breaking the relation into new set
(table) of relations
Normal Forms
Functional
Dependence Concepts
Concept Definition
Functional dependence The attribute B is fully functionally dependent on the
attribute A if each value of A determines one and only one
value of B.
Steps
Eliminate the repeating groups Identify the primary key Identify all dependencies
1NF describes
There tabular format
are no repeating in in
groups which:
the All attributes are dependent on the
All key attributes are defined
table primary key
2
3
4
Surrogate Keys
System-defined attribute
• Is in 3NF
• Has no multivalued dependencies
Rules
• All attributes must be dependent on the primary key, but they must be
independent of each other
• No row may contain two or more multivalued facts about an entity 4NF
Principles and
normalization
procedures to be
Proposed entities understood to
Normalization should must meet required redesign and modify
be part of the design the normal form databases
process before table • ERD is created through an
structures are created iterative process
• Normalization focuses on
the characteristics of
specific entities
Initial ERD
Modified ERD
Incorrect M:N
Final ERD
The Implemented Database
Denormalization
Design goals
Creation of normalized relations Processing requirements and speed