需要数据库设计规范化帮助 (5nf)
你们能告诉我如何得到第五范式的 ERD 吗?昨天我们做了一个课堂作业,有一位真正的客户进来并向我们解释他的需求,我的小组提出了这个模型,我正在尝试更进一步,看看我是否可以将其达到第五范式,以便我可以更好地理解它,因为下周我们将做另一个小组 ERD,这必须在 5nf 中,但问题是我不知道从哪里开始,而且这本书对我来说也没有理解。你们能帮帮我吗。Erd 模型 http://img534.imageshack.us/img534/ 2118/capturekk.jpg
新信息“假客户需求”
客户有 2 个部门“实验室 1, 实验室 2”,从中订购医疗用品 他,比如手套和pi宠物等等。 部门已经扩大,他 想要跟踪其中的内容 库存供应商正在销售的产品 谁的价格最优惠以及成本是多少 它来自中心。
他的方式 解释说订购的商品是 一个人去找他并要求 然后他写下哪个实验室 该人来自该人的名字 以及在哪个成本中心计费。但他 也想追踪已经发生的事情 按购买日期和库存情况 以及必须购买什么。他还 举了一些用户想要的例子 来自特定供应商的物品 可能没有最优惠的价格,他 还收到一些目录 邮件中也附有他想要的价格 跟踪。
如果内容混乱,我深表歉意,但这都是我的记忆。
Can you guys show me how to get this ERD in 5th normal form? We did a class assignment yesterday where we had a real client come in and explain to us his need my group came up with this model I am trying to take it a step further and see if I can get it to 5th normal form so that I can understand it better as next week we will be doing another group ERD that will have to be in 5nf the thing is I don't know where to start and the book is not getting through to me. can you guys help me.Erd Model http://img534.imageshack.us/img534/2118/capturekk.jpg
New information "Fake Clients Needs"
The client has 2 departments "Lab 1,
Lab 2" that order medical items from
him, like gloves and pi pets etc..
the departments have grown and he
wants to keep track of what is in
inventory what the vendors are selling
who has the best price and what cost
center it came from.The way he
explained it the item is ordered is that
an individual goes to him and asks for
supplies he then writes down what lab
the person is from the persons name
and what cost center to bill. but he
also wants to track what has been
purchased by date and what is in stock
and what has to be bought. He also
gave an example that some users want
items from a specific vendor that
might not have the best prices and he
also receives some catalogs in the
mails with prices too that he wants to
track.
I apologize if its jumbled but this is all from memory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我要挺身而出,说你当前的模式实际上不具备 5NF 的资格。引用维基百科的话,它说大多数 4NF 表已经符合 5NF:
http://en.wikipedia.org/wiki/Fifth_normal_form
也许目的不是为了您的数据库 5NF,但要了解它与 5NF 相比的结构,并论证为什么它可能已经在 5NF 中。
更新:从评论中阅读某种形式的共识,看来您的设计可能已经处于 5NF 中,无论是有意为之还是之前规范化过程中的意外。
I'm going to stick my neck out and say your current schema doesn't really have any eligibility for 5NF. Taking a quote from wikipedia, it says most 4NF tables already conform to 5NF:
http://en.wikipedia.org/wiki/Fifth_normal_form
Perhaps the purpose is not to make your database 5NF, but to understand it's structure compared to 5NF and make an argument for why it might already be in 5NF.
Update: reading some form of consensus from the comments, it seems your design may already be in 5NF, whether it was by design or by accident from a previous normalization pass.
免责声明:在不了解您的业务逻辑的情况下,我对以下一些建议可能是完全错误的。
好的,我在您的数据库架构中看到了一些内容。
Disclaimer: Without knowing your business logic I could be completely wrong with some of the following suggestions.
Ok a few things I saw in your database schema.