Professional Documents
Culture Documents
DB Fundamentals Lecture #
DB Fundamentals Lecture #
DB Fundamentals Lecture #
Science
Islamic Republic of Afghanistan
Ministry of Higher Education
Badakhshan University
Computer Science Faculty
JAVA PROGRAMMING
Ternary Relationship
The above relationship means that one or many manager with one
or many clients sign contract in one or many projects
Works on
The above relationship means that one or many analyst with one or many
programmers works on one or many projects
09/11/2020 5
Cardinality constraints
Cardinality constraints specifies the number of instance of one
entity that can (or must) be associated with each instance of
another entity.
There are three types of symbols used to show cardinality
1. circle : It means that the minimum number of relationship
between each instance of first entity and instance of second
entity is zero. It is also called the optional relationship
STUDENT BOOK
EMPLOYEE PROJECT
The minimum cardinality on both side is zero and the maximum cardinality
on both side is many
It means, that one student can take many or no course to study, similarly one
course can be taken by many students or no students.
• Entity Type
• Relationship Type
• Associative Entity
_____
• Key Attribute
• Derived Attribute
• Composite Attribute
Email: mqm.dacaar@gmail.com
Phone: +0789152242