normalization transitive dependencies

放肆的年华 提交于 2019-12-08 21:49:30

The Sales Order table has a transitive dependency on the customer's name and address. If you look closely, you will see that each order will include the full address and name information for a given customer, even though that information probably isn't changing from one order to the next. To remedy this, you can move this information to a new Customer table which would have these fields:

Customer Table

CustomerID (PK)
Last Name
First Name 
Last Name 
Street Address
Apt
City
State
Zip
Home Phone
Mobile Phone
Other Phone

The Sales Order table would then become:

Sales Order Table

Sales OrderID (PK)
Order Date
CustomerID (FK)
Special Notes

Note that the order date can remain in the Sales Order table because conceptually it represents a timestamp when each order occurred, unique to that particular order.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!