Professional Documents
Culture Documents
ERD design recap
ERD design recap
ERD design recap
5-3
Advanced Database Systems
Entity relationship diagrams are abstractions of the real world that simplify the
problem to be solved while retaining its essential features.
identify the data that must be captured, stored and retrieved in order to support the business activities
performed by an organization; and identify the data required to derive and report on the performance
measures that an organization should be monitoring.
ENTITIES
ATTRIBUTES
RELATIONSHIPS
An
Anactual,
actual, real
realthing
thingor
or person
personabout
about which
whichdata
data
might
might be
bestored
storedisis referred
referredto
toas
asan
anentity.
entity.
An
Anattribute
attributeisisaadata
dataelement
element associated
associatedwith
withan
anentity.
entity.
entity types.
The relationship PLAY-FOR between the entity types
There are potentially three types of relationship that can exist between two different entities:
One-to-One Relationships
One-to-Many Relationships
Many-to-Many Relationships
This means that a department has at most one head and that manager
is head of at most one department.
A B 1:1
A B 1:N
has enrolled
COURSE STUDENT
refers to
LOAN BOOK
supplies
SUPPLIER PART
SUPPLIER PART
SUPPLIER PART
SUPPLIER_
PART
WARD DOCTOR
has accommodates
assigned treats
DEPARTMENT
is_in
offers
COURSE LECTURER
teaches_on
enrols
STUDENT