Chapter14
Chapter14
Navathe
CHAPTER 14
Figure 14.1 A
simplified COMPANY
relational database
schema.
Figure 14.3
Two relation schemas
suffering from update
anomalies. (a)
EMP_DEPT and (b)
EMP_PROJ.
GUIDELINE 4:
The relations should be designed to satisfy the
lossless join condition.
No spurious tuples should be generated by doing
a natural-join of any relations.
Note that:
Property (a) is extremely important and cannot be
sacrificed.
Property (b) is less stringent and may be sacrificed. (See
Chapter 15).
Normal form:
Condition using keys and FDs of a relation to
certify whether a relation schema is in a particular
normal form
Figure 14.10
Normalizing nested relations into 1NF. (a) Schema of the EMP_PROJ relation with a
nested relation attribute PROJS. (b) Sample extension of the EMP_PROJ relation
showing nested relations within each tuple. (c) Decomposition of EMP_PROJ into
relations EMP_PROJ1 and EMP_PROJ2 by propagating the primary key.
Figure 14.13
Boyce-Codd normal form. (a) BCNF normalization of LOTS1A with the
functional dependency FD2 being lost in the decomposition. (b) A
schematic relation with FDs; it is in 3NF, but not in BCNF due to the f.d. C
→ B.
Figure 14.14
A relation TEACH that is in 3NF
but not BCNF.
D3: {instructor, course } and {instructor, student}
All three decompositions will lose fd1.
We have to settle for sacrificing the functional dependency
Instructor Student.
Since Instructor Course is indeed true, the NJB
property is satisfied and D3 is determined as a non-
additive (good) decomposition.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Slide 14- 52
Chapter Summary
Informal Design Guidelines for Relational
Databases
Functional Dependencies (FDs)
Normal Forms (1NF, 2NF, 3NF)Based on Primary
Keys
General Normal Form Definitions of 2NF and 3NF
(For Multiple Keys)
BCNF (Boyce-Codd Normal Form)
Fourth and Fifth Normal Forms