Database SQL Select and Join Query
Running head: Donuts-r-us database app 1
Donuts-r-us database app 7
Donuts-R-Us Database App
Jose W. Martinez
Western Governors University
Donuts-R-Us Database App
First Normal Form (1NF)
|
1 NF |
|
|
PK |
DonutOrderID |
|
|
OrderDate |
|
|
CustomerID |
|
|
CustomerLastName |
|
|
CustomerFirstName |
|
|
CustomerAddress |
|
|
AptNum |
|
|
City |
|
|
State |
|
|
ZipCode |
|
|
HomePhone |
|
|
MobilePhone |
|
|
OtherPhone |
|
|
Notes |
|
|
DonutID |
|
|
DonutName |
|
|
Qty |
|
|
Description |
|
|
UnitPrice |
1NF – Description
|
2 NF |
|
|
PK |
DonutOrderID |
|
|
OrderDate |
|
|
CustomerID |
|
|
CustomerLastName |
|
|
CustomerFirstName |
|
|
CustomerAddress |
|
|
AptNum |
|
|
City |
|
|
State |
|
|
ZipCode |
|
|
HomePhone |
|
|
MobilePhone |
|
|
OtherPhone |
|
|
Notes |
|
|
|
|
PK |
DonutOrderID |
|
PK |
DonutID |
|
|
Qty |
|
|
|
|
PK |
DonutID |
|
|
DonutName |
|
|
Description |
|
|
UnitPrice |
2NF – Description
|
3NF |
|
|
PK |
DonutOrderID |
|
|
OrderDate |
|
FK |
CustomerID |
|
|
Notes |
|
|
|
|
PK |
CustomerID |
|
|
CustomerLastName |
|
|
CustomerFirstName |
|
|
CustomerAddress |
|
|
AptNum |
|
|
City |
|
|
State |
|
|
ZipCode |
|
|
HomePhone |
|
|
MobilePhone |
|
|
OtherPhone |
|
|
|
|
PK |
DonutOrderID |
|
FK |
DonutID |
|
|
Qty |
|
|
|
|
PK |
DonutID |
|
|
DonutName |
|
|
Description |
|
|
UnitPrice |
3NF – Description