【发布时间】:2013-01-10 19:15:20
【问题描述】:
目前我在学习标准化时遇到了困难。虽然我知道 1NF - 3NF 背后的基本概念,但我仍然不了解规范化之前需要遵循的步骤。
据我了解,首先要收集base entities,他们的attributes,relation among the entities,然后是start normalization。但我不明白,我是应该一次规范化所有属性还是规范化彼此具有某种关系的实体的属性。
以商店为例。
store(name, address, contact)
customer(sn, name, address)
item(id, name, price)
transaction(id, date, customer_sn, item_id, quantity, total_price)
根据我的理解,我要么尝试一次规范化所有属性,要么只规范化 customer、item 和 transaction 的属性。
我知道我错过了什么,我就是想不通。
感谢任何帮助。感谢您宝贵的时间。
【问题讨论】:
-
您接受的答案中的几乎所有内容都是错误的。
-
@Catchall:您对 2.NF 的看法是正确的,但告诉
Almost everything is wrong是荒谬的,您可能会添加到商店的价值列表不是问题中所要求的,也不是帮助任何人。但我删除了我的答案,因为我不认为t want to be downvoted because of your ridiculous comment and your apparent inability to understand it combined with a much higher reputation. I dont 认为用户接受了因为它没有帮助他。