ER 模型:这是一对多关系的例子吗?

ER Model: How is this an example of a one-to-many relationship?

我正在阅读 Silberschatz 和 Sudarshan 合着的 数据库系统概念 6e 并了解实体关系模型中的关系。

关于基数的一章如下图,并附有解释:

For example, consider Figure 7.10. The line between advisor and student has a cardinality constraint of 1..1, meaning the minimum and the maximum cardinality are both 1. That is, each student must have exactly one advisor. The limit 0..∗ on the line between advisor and instructor indicates that an instructor can have zero or more students. Thus, the relationship advisor is one-to-many from instructor to student, and further the participation of student in advisor is total, implying that a student must have an advisor.

混淆的部分以粗体显示。根据我一直在阅读的另一本书(Connolly 和 Begg 的 Database Systems),上面的内容将被解读为:

"An instructor advises one student. Each student can have zero or more advisors."

下面是 Connolly 书中的一个图表示例来说明我的观点:

第一张图的正确读法是什么?

我想通了!细微差别在于使用 名词 来表示关系与使用 动词 来表示关系。两本书都是对的。第一本书使用了一个名词(advisor);第二个使用动词。

对于参与 "advisor" 关系的教师和学生,可以说教师参与该关系的次数从 0 次到多次不等。但是,一个学生在这种关系中只能参与一次(假设一个学生不能有超过一个导师)。因此,这是一个一对多的关系。

当我们以这种方式使用名词时,保持 (min, max) 符号最接近它所适用的实体是有意义的。

但这可以等效地用动词 "advises," 表示,其中一名教师建议一名或多名学生,但一名学生最多接受一名教师的建议。在这种由动词定义的单向关系中,将教师的参与置于学生附近更有意义(实体 "verbed," 可以这么说,在关系中)。