CS 320: Database Management Systems

Relational Design and Normalization

Ge (Frank) Xia, CS, Lafayette College

 

Adapted from lecture notes by Prof. Ullman @ Stanford

Contents

Anomalies

Example of Bad Design


Bad Design Exhibits Anomalies

Boyce-Codd Normal Form

Example

Another Example

Decomposition into BCNF

Decompose R Using X ->B

Decomposition Picture

Example

Example, Continued

Example, Continued

Example, Concluded

3rd Normal Form - Motivation

We Cannot Enforce FD's

An Unenforceable FD

3NF Let's Us Avoid This Problem

Example

What 3NF and BCNF Give You

Algorithm for 3NF

3NF & BCNF, Continued