Professional Documents
Culture Documents
Ebook-Database System-411-414
Ebook-Database System-411-414
As with entity types and entities, it is necessary to distinguish between the terms
“relationship type” and “relationship occurrence.”
Figure 12.4 A semantic net showing individual occurrences of the Has relationship type.
Figure 12.5
A diagrammatic
representation of
Branch Has Staff
relationship type.
Figure 12.6
An example
of a binary
relationship called
POwns.
binary relationships. In fact, the most common degree for a relationship is binary,
as demonstrated in this figure.
A relationship of degree three is called ternary. An example of a ternary relation-
ship is Registers with three participating entity types: Staff, Branch, and Client. This
relationship represents the registration of a client by a member of staff at a branch.
The term “complex relationship” is used to describe relationships with degrees
higher than binary.
Figure 12.9
An example
of a recursive
relationship
called Supervises
with role names
Supervisor and
Supervisee.
Figure 12.10
An example
of entities
associated
through
two distinct
relationships
called Manages
and Has with
role names.