Normalization, UNF, 1NF and 2NF-21-08-2024
Normalization, UNF, 1NF and 2NF-21-08-2024
Definition:
Transitive functional dependency - a FD X -> Z
that can be derived from two FDs X -> Y and Y -> Z
Examples:
- SSN -> DMGRSSN is a transitive FD since
SSN -> DNUMBER and DNUMBER -> DMGRSSN
hold
- SSN -> ENAME is non-transitive since there is no set
of attributes X where SSN -> X and X -> ENAME
Definition:
Superkey of relation schema R - a set of attributes
S of R that contains a key of R
A relation schema R is in third normal form
(3NF) if whenever a FD X -> A holds in R, then
either:
(a) X is a superkey of R, or
(b) A is a prime attribute of R
NOTE: Boyce-Codd normal form disallows condition (b)
above
Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 10-44
Copyright © 2004 Ramez Elmasri and Shamkant Navathe
5 BCNF (Boyce-Codd Normal Form)
3) R(A,B,C,D,E,F)
FDs S = {AB → C, BC → AD, D → E, CF → B} find attribute
closures, and list the candidate keys of R.