从ERD解读两个实体之间的关系

huangapple go评论56阅读模式
英文:

Deciphering the relationship between two entities from the ERD

问题

I want to understand the relationship expressed by the following figure:
从ERD解读两个实体之间的关系

The "o" in front of the employee box means zero or one, and the "|" in front of the department means 1 or more. But I am not sure how to express it.
Some things I thought about this could mean:

  • A department can have no employees.
  • An Employee can work in one or more departments (Not sure if this is true).
  • A department can have many employees.
    Need some input on the above.
英文:

I want to understand the relationship expressed by the following figure:
从ERD解读两个实体之间的关系

The o in front of the employee box means zero or one and the | in front of the department means 1 or more. But I am not sure how to express it.
Some things I thought about this could mean:

  • A department can have no employees

  • An Employee can work in one or more departments (Not sure if this is true)

  • A department can have many employees
    Need some input on the above.

答案1

得分: 0

这是一个多对多的关系。 "o" 和 "|" 表示可选或强制元素的信息,更准确地说:

  • 一个部门可以有多名员工在其中工作,但也可以没有员工;
  • 一个员工必须至少在一个部门工作,并且可以在多个部门工作。

顺便说一下,值得了解更多关于乌鸦脚ERD符号表示法

英文:

This a many to many relationship. The o and the | tell about optional or mandatory elements, more precisely that:

  • a department can have several employees working in it, but could also have none;
  • an employee must work in at least one department, and can work in several.

By the way, it's worth discovering more about Crow's foot ERD notation

huangapple
  • 本文由 发表于 2023年5月20日 20:51:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76295322.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定