Relationship Types of degree higher than 2

aadeshere1 4,065 views 13 slides Apr 07, 2017
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Relationship types of degree higher than 2 in database.


Slide Content

1 / 13
Relationship Types of Degree
Higher than Two
Aadesh Shrestha

2 / 13
Degree of a relationship type
●number of participating entity types ( (binary,
ternary, . . . ))
● a relationship type of degree two - binary
● a relationship type of degree three – ternary
●n-nary

3 / 13
Binary Relationship
●two entities are involved in binary relationship.
●example "some employees are married to other
employees".

4 / 13
Ternary Relationship
●three entities are in involved in ternary relationship

5 / 13
… ternary relationship
● Ternary or n-ary relationships can be decomposed
into two or more binary relationships.

6 / 13
Constraint on Relationship Types
●Limit the number of possible combinations
of entities thatmay participate in a relationship
set
●Two types of constraint:
–Cardinality ratio
–Participation constraint

7 / 13
… Cardinality ratio
●cardinality ratio must be one of the following
types

8 / 13
… Cardinality ratio

9 / 13
… Cardinality ratio

10 / 13
… Cardinality ratio

11 / 13
Participation Constraint
●participation constraint defines the number of times
an object in an object class can participate in a
connected relationship set
●every connection of a relationship set must have a
participation constraint.

12 / 13
Participation Constraint

13 / 13
Thank you
Reference Papers
●http://web.cs.ucdavis.edu/~green/courses/ecs165a-w11/2-er.pdf
●http://osm7.cs.byu.edu/OSA/participConst.html
●http://www.webmaster-forums.net/web-programming-and-application-development/what-degree-relationship-database