Lecture 5
Lecture 5
Advanced Normalization
More on Functional Dependencies
2
Inference Rules for Functional Dependencies
3
Inference Rules for Functional Dependencies
4
Inference Rules for Functional Dependencies
6
Inference Rules for Functional Dependencies
(6) Union
If A → B and A → C, then A → B,C
(7) Composition
If A → B and C → D then A,C → B,D
7
Minimal Sets of Functional Dependencies
9
Boyce–Codd Normal Form (BCNF)
10
Boyce–Codd Normal Form (BCNF)
Difference between 3NF and BCNF is that for a
functional dependency A → B, 3NF allows this
dependency in a relation if B is a primary-key
attribute and A is not a candidate key.
Whereas, BCNF insists that for this
dependency to remain in a relation, A must be
a candidate key.
12
Review of Normalization (UNF to BCNF)
13
Review of Normalization (UNF to BCNF)
14
Review of Normalization (UNF to BCNF)
15
Review of Normalization (UNF to BCNF)
16
Fourth Normal Form (4NF)
17
Fourth Normal Form (4NF)
18
Fourth Normal Form (4NF)
19
Fourth Normal Form (4NF)
21
4NF - Example
22
Fifth Normal Form (5NF)
A relation decompose into two relations must
have the lossless-join property, which ensures
that no spurious tuples are generated when
relations are reunited through a natural join
operation.
23
Fifth Normal Form (5NF)
24
5NF - Example
25
5NF - Example
26