
11/13/2008
1
CSC 4480
Chapter 19: Normalization
Problems Caused By Redundancy
• redundant storage
• update anomaly
• insertion anomaly
• deletion anomaly
Decomposition
• Decompose schema R by replacing the
schema with two (or more) relation
schema that each contain a subset of R
and together include all attributes of R
.
• Two questions to ask repeatedly:
– do we need to decompose a relation?
– what problems does a given decomposition
cause?
Functional Dependencies
• the FD X→Y hold if, ∀t1, t2 in r:
If t1.X=t2.X then t1.Y=t2.Y
• Closure of a set of F is F+.
’
– Reflexivity: if X ⊇Y, then X →Y
– Augmentation: if X →Y then XZ →YZ
– Transitivity: if X →Y and Y →Z then X →Z
• If we take the original FDs and then apply the
axioms, we obtain the closure. (Theorem 1).
Boyce-Codd Normal Form
• For every FD X→A in F, one of following is
true:
–A ∈X (trivial)
• Each attribute depends on the key, the
whole key, and nothing but the key.
Third Normal Form
• For every FD X→A in F, one of following is
true:
–A ∈X (trivial)
– A is part of some key for R.