L5 Normalization
L5 Normalization
College of Engineering
Software & Informatics Engineering Department
NORMALIZATION
ND
2 STAGE
Lecturer:
Hanan Kamal
2
Objectives
• How normalization can be used when designing a
relational database.
• How to identify functional dependencies for a given
relation.
• How to identify the most commonly used normal forms,
namely First Normal Form (1NF), Second Normal Form
(2NF), and Third Normal Form (3NF).
3
Purpose of Normalization
• Normalization is a technique for producing a
set of suitable relations that support the data
requirements of an enterprise.
Functional Dependencies
• Important concept associated with normalization.
Characteristics of Functional
Dependencies
• Property of the meaning or semantics of the attributes
in a relation.
• Diagrammatic representation.
staffNo → sName
sName → staffNo
11
staffNo → sName
12
Characteristics of Functional
Dependencies
• Determinants should have the minimal
number of attributes necessary to maintain
the functional dependency with the
attribute(s) on the right hand-side.
Characteristics of Functional
Dependencies
• Full functional dependency indicates that if
A and B are attributes of a relation, B is
fully functionally dependent on A, if B is
functionally dependent on A, but not on any
proper subset of A.
14
AC (fd1)
CA (fd2)
B D (fd3)
A, B E (fd4)
(A, B) is identified as the primary key for this relation.
22
26
27
• Or by
• Placing the repeating data along with a copy of the
original key attribute(s) into a separate relation.
30
31
1NF
32
1NF to 2NF
• Identify the primary key for the 1NF relation.
2NF
36
3NF
39
2NF to 3NF
• Identify the primary key in the 2NF relation.
Questions????