Professional Documents
Culture Documents
Normalization: Dale-Marie Wilson, PH.D
Normalization: Dale-Marie Wilson, PH.D
Purpose of Normalization
Definition
A technique for producing a set of suitable relations that
support data requirements of an enterprise
Characteristics of suitable set of relations:
Minimal number of attributes necessary to support data
requirements of enterprise
Attributes with close logical relationship found in same
relation
Minimal redundancy with each attribute
Represented only once
Exception of attributes that form all or part of foreign keys
Purpose of Normalization
data
Takes up minimal storage space on
computer
How Normalization
Supports Database Design
Potential benefits:
Updates
Lossless-join and
Dependency Preservation
Properties
property
preservation property
Functional Dependencies
Functional Dependency
Example
Functional Dependencies
staffNo sName
Functional Dependencies
Characteristics:
Full
functional dependency
Functional Dependency
Example
Functional Dependencies
Characteristics:
one-to-one
Transitive Dependencies
Transitive Dependency
Example
Process of Normalization
Formal technique for analyzing a relation
based on its primary key and the
functional dependencies between the
attributes of that relation
Executed as series of steps
Each step corresponds to specific normal
form with known properties
Identifying Functional
Dependencies
Identifying Functional
Dependencies Example
Identifying Functional
Dependencies Example
Important
Must
of candidate keys
Choice of primary key
Normalization Process
As normalization proceeds
Relations
Normalization Process
Normal Forms
Normal Forms
UNF to 1NF
Nominate
Normal Forms
relation that is in 1NF and every non-primarykey attribute is fully functionally dependent on the
primary key
Normal Forms
1NF to 2NF
Identify
Identify
functional dependencies
If
Normal Forms
Normal Forms
2NF to 3NF
Identify
Identify
functional dependencies
If
Normal Forms
Normal Forms
Every relation in BCNF is in 3NF
Relation in 3NF not necessarily in BCNF
Violation of BCNF rare
Violations of BCNF occur when:
Relation
Normalization Example
Normalization Example
Normalization Example
Normalization Example
2NF
PropertyInspection(propertyNo, iDate, iTime, comments,
staffNo, sName, carReg)
Property(propertyNo, pAddress)
3NF
PropertyInspection(propertyNo, iDate, iTime, comments,
staffNo, sName, carReg)
Property(propertyNo, pAddress)
Staff(staffNo, sName)
Normalization Example
BCNF
Property Relation
fd2
propertyNo pAddress
Staff Relation
fd3
staffNo sName
PropertyInspect Relation
fd1
propertyNo, iDate iTime, comments, staffNo, carReg
fd4
staffNo, iDate carReg
fd5
carReg, iDate, iTime propertyNo, comments, staffNo
fd6
staffNo, iDate, iTime propertyNo, comments
Normalization Example
BCNF
Loss of fd:
Normalization Example
Chapters covered:
Chpts