Professional Documents
Culture Documents
DERD
DERD
DIAGRAM (ER-D)?
father of/
child of
The diagram above indicates that
a person may be the father of
zero or many persons, and that a
person may have zero or one
father.
SYMBOLS USED IN AN ERD
A circle ( ) indicates that the
relationship is optional
RELATIONSHIP
OPTIONALITY and CARDINALITY
Symbols at the ends of the relationship
lines indicate the optionality and the
cardinality of each relationship.
students school
SCHOOL
THE MAIN COMPONENTS OF AN
ERD:
The entity is a person, object,
provides/
SUPPLIER PRODUCT
offered by
While this relationship model is
perfectly valid, it cannot be
translated directly into a relational
database design. In a relational
database, relationships are expressed
by keys in a table column that point
to the correct instance in the related
table. A many-to-many relationship
does not allow this relationship
expression, because each record in
each table might have to point to
multiple records in the other table.
In order to build a relational database that
captures this relationship, it is necessary to
build a bridge between the two entities that
uniquely expresses each relationship
instance. This can be modeled in an ERD
with a “bridge entity,” an entity box
containing a diamond, which may replace
the many-to-many relationship. (The
diamond is used in other ER modeling
systems to indicate relationships, or may be
viewed as the joining—the bridge—of the
many-to-many “crows-feet”).
PROVIDES/
SUPPLIER PRODUCT
OFFERED BY
negotiates
negotiates
ORGANIZATION CONSORTIUM
vends
PROCESSING
WORKFLOW RULES
WORKFLOW
CONSORTIAL
LOCATION USER GROUP ACQUISITION
PARTICIPATION
publishes
provides
LIBRARY
AVAILABLE AT AVAILABLE TO PARTNER LIBRARY
PARTICIPATION
TRIAL
ELECTRONIC PRODUCT
LIBRARY
delivers
ADMIN
E-RESOURCE PREVAILING TERMS
INFO CONTACT
CONTACT
RESPONSIBILITIES
includes/
is part of
WORK
LICENSE
E-PRODUCT/
PRINT VERSION
LICENSE
ER DIAGRAMMING TOOLS
There are many ER diagramming tools. Some of the
proprietary ER diagramming tools are ARIS, Avolution,
dbForge Studio for MySQL, DeZign for Databases,
ConceptDraw, ER/Studio, Devgems Data Modeler,
ERwin, MEGA International, Metastorm ProVision,
OmniGraffle, Oracle Designer, PowerDesigner,
Rational Rose, SmartDraw, Sparx Enterprise Architect,
SQLyog, System Architect, Toad Data Modeler,
SQL Maestro, Microsoft Visio, and Visual Paradigm
SCENARIO 1
DRAW AN E-R DIAGRAM TO
ILLUSTRATE THE RELATIONSHIP
BETWEEN EACH ENTITY.
(A) TEACHER AND FORM
EACHPATIENT IS ASSIGNED TO A
SINGLE BED AND IS UNDER THE CARE
OF A SINGLE CONSULTANT. EACH
CONSULTANT IS RESPONSIBLE FOR A
NUMBER OF PATIENTS.
A publisher uses a
relational database to
record details of articles it
publishes in a monthly
magazine
Two relations (tables)