Week 9 - Normalization
Week 9 - Normalization
Normalization
Week 7
Definition
• Examples:
• {SSN, PNUMBER} -> HOURS is a full FD since neither SSN -> HOURS nor
PNUMBER -> HOURS hold
• {SSN, PNUMBER} -> ENAME is not a full FD (it is called a partial dependency )
since SSN -> ENAME also holds
Third Normal Form
• Examples:
• SSN -> DMGRSSN is a transitive FD
• Since SSN -> DNUMBER and DNUMBER -> DMGRSSN hold
• Assume that DNUMBER is not a candidate key
• SSN -> ENAME is non-transitive
• Since there is no set of attributes X where SSN -> X and X -> ENAME
Normalizing into 2NF and 3NF
Normalization of LOTS into 2NF and 3NF
SUMMARY OF NORMAL FORMS based
on Primary Keys
Exercise 1
• Identify all FUNCTIONAL DEPENDENCIES (assume that any given product is supplied
by a single vendor, but a vendor can supply many products)
• Transform that table into 2 NF and 3 NF