Professional Documents
Culture Documents
Entity Relationship Diagram: Yufei Tao
Entity Relationship Diagram: Yufei Tao
Entity Relationship Diagram: Yufei Tao
Yufei Tao
grade TAKE
STU sid
dept gpa
For example, a professor is an entity. PROF is an entity set with all the
professors.
pid hkid
dept PROF
rank salary
Cardinality constraint:
One-to-one.
One-to-many (or conversely, many-to-one).
many-to-many.
Participation constraint:
Total.
Partial.
We will first talk about cardinality constraints.
A R B
A R B
A R B
A R B
A R C
grade
STU R CLASS
grade
STU R CLASS