实体关系模型:三元关系
我试图理解为什么书中的这一说法是错误的:“给定一个 C 实体,最多有一个相关的 A 实体和最多一个相关的 B 实体”。 它不适用于特定类型的关系吗? 因此,如果我有一个学生正在参加某类主题课程的例子。实体是学生、出勤率、课程和科目。学生在一个房间里出勤。此外,学生可以参加某个科目的出勤。这个例子适用于该声明吗?
感谢您抽出时间。
I am trying to understand why this statement in the book is wrong: "given a C entity, there is at most one related A entity and at most one related B entity".
Is it that it doesn't apply to a specific kind of relationship??
So, if I have an example of a student who is in attendance to a course with a type of subject. The entities are student, attendance, course and subject. Student makes attendance in a room. Also, a student can make attendance for a subject. Does this example apply to the statement?
Thanks for your time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作者的意思可能是:在单一关系实例中(例如,学生-Bob/课程-ABC/attendance123)。因此,在该实例中链接了一个学生、一门课程和一个出勤记录。
不适用于班级中的所有关系实例(学生鲍勃可以随着时间的推移参加许多课程)。
The author probably means: in a single relationship instance (e.g., student-Bob/course-ABC/attendance123). So there is a single student, a single course and a single attendance record linked in that instance.
Not across all relationship instances in the class (where student Bob could attend many classes over time).