customer order order number date cust id last name first name state amount tax rate product 1 id...

Post on 03-Jan-2016

225 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Customer OrderOrder NumberDateCust IDLast NameFirst NameState Amount Tax RateProduct 1 IDProduct 1 DescriptionProduct 1 QuantityProduct 2 ID Product 2 DescriptionProduct 2 QuantityProduct 3 IDProduct 3 DescriptionProduct 3 Quantity

Single Table, Not Normalized

Three Problems to Address;

(for 1st, 2nd, and 3rd Normal Form)

•Repeating Groups

- Such as Product ID, Product Description

•Partial Dependencies

- An attribute of an entity identified by only part of the concatenated key

•Transitive Dependencies

- An attribute of an entity identified by another attribute (foreign key)

OrderOrder NumberDateCust IDLast NameFirst NameState Amount Tax Rate

Product OrderOrder NumberProduct IDProduct DescriptionProduct Quantity

First Normal Form: no repeating groups

OrderOrder NumberDateCust IDLast NameFirst NameState Amount Tax Rate

Product OrderOrder NumberProduct IDProduct Quantity

Second Normal Form: No partial dependencies

ProductProduct IDProduct Description

OrderCust IDOrder NumberDateState Amount

Product OrderOrder NumberProduct IDProduct Quantity

ProductProduct IDProduct Description

Third Normal Form: No transitive dependencies

CustomerCust IDLast NameFirst Name

StateStateTax Rate

top related