g g g g g g g
First Normal Form – 1 Table
g g g g g
I gleaned this table from the unstructured data contained within the order
g g g g g g g g g g g
gform. I made sure not to have any redundant groups, and each column in
g g g g g g g g g g g g g
gthe table will contain atomic values. Donut ID, Donut Name, Donut Quantity,
g g g g g g g g g g g
gUnit Price, and Donut Description are an example of a repeating group. As I
g g g g g g g g g g g g g
gmentioned earlier, in order to achieve first normal form, we must eliminate
g g g g g g g g g g g
grepeating groups. This requires the use of a composite key made up of Donut
g g g g g g g g g g g g g
gOrder ID and Donut ID.
g g g g
Second Normal Form – 3 Tables
g g g g g
In order to achieve second normal form we need to split the first
g g g g g g g g g g g g
gtable into three separate tables so that all non-key attributes are
g g g g g g g g g g
gfunctionally dependent on the entire primary key. I took the
g g g g g g g g g
gattributes that are partially dependent on the primary key, and
g g g g g g g g g
gplaced them into separate relations. Donut Name, Donut
g g g g g g g
gDescription, and Unit Price depend only on Donut Order ID. Donut
g g g g g g g g g g
gQuantity and Item Total depend on both Donut Order ID and
g g g g g g g g g g
gDonut ID. g
, Third Normal Form – 4 Tables
g g g g g
In order to achieve third normal form we need to eliminate any transitive dependency, meaning an attribute depends on
g g g g g g g g g g g g g g g g g g
ganother attribute that is not the primary key. For example, looking at our second normal form tables, Customer Last
g g g g g g g g g g g g g g g g g g
gName is dependent on Donut Order ID. (Each Donut Order ID has only one Customer Last Name value associated with
g g g g g g g g g g g g g g g g g g g
git) To transform into third normal form we simply move any transitively dependent attributes to their own relation
g g g g g g g g g g g g g g g g g
gwhere they depend on only the primary key.
g g g g g g g