将 ER 图转换为关系方案

奥升科技

目前我正在学习关系方案,我将以下 ER 图转换为一个,但我觉得缺少一些东西。我想知道我是否正确或遗漏了什么?

IS图

这是我做的关系方案

关系方案图

飞利浦

In true ER (entity-relationship) modeling/diagramming methods, a diamond is an association/relationship type, a box is an entity type & a line is a participation/FK, and every box (entity) & diamond (relationship) type gets a table. Your schema does not reflect your diagram. Generally diamondless methods call themselves "ER", and call FKs "relationships", but they are really just describing database schemas. (Although there is nothing wrong with that per se.) They would use just lines denoting FKs for your M:1 diamonds & lines, but for M:M diamonds they would use a box.

您的架构不能正确表示您的 M:M 关联/关系“包含”。您的 schmea 如何记录某个预订包括某些房间?具有不同 RID 的多个保留​​行会与您的 PK(主键)相矛盾,标准化很差,并且不会反映任何方法对您的图表的解释。

PS 1 除非您提供您正在使用的方法/产品的参考,否则我们无法告诉您您是否遵循了它,甚至解释了您的图表。

PS 2. 你的架构没有比你的图表更多的内容。如果一种方法涉及在从图表移动到模式时添加信息,那么给出模式是有必要的。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章