Professional Documents
Culture Documents
เฉลยแบบฝึกหัด DB บทที่ 5
เฉลยแบบฝึกหัด DB บทที่ 5
5.
Normalization 1NF 4NF BCNF
Order
1NF Atomic, Repeating Group and Key Attribute 2NF Partial Dependency
Order
OrderID OrderDate CusID CusName CusAddr ProductID ProductName UnitPrice QTY Order(OrderID, OrderDate, CusID, CusName, CusAddr,
ProductID, ProductName, UnitPrice, QTY)
1020 24/10/2551 C002 P007 1,500 2
1020 24/10/2551 C002 P005 2,400 2
1020 24/10/2551 C002
P004
5,300 1
1021 25/10/2551 C003 P011 25,500 1
1021 25/10/2551 C003
P005
2 400
2,400 3 Order(OrderID, OrderDate,
Order(OrderID OrderDate CusID,
CusID CusName,
CusName CusAddress,
CusAddress ProductID,
ProductID
1023 28/10/2551 C005 P008 750 15 QTY)
1011 18/10/2551 C004 P011 25,500 1 Product(ProductID, ProductName, UnitPrice)
1022 26/10/2551 C003 P006 1,250 6
Order(OrderID,
O d (O d ID O OrderDate,
d D t CusID,
C ID CCusName,
N C
CusAddr,
Add P ProductID,
d tID
ProductName, UnitPrice, QTY)
Introduction to Database System Introduction to Database System