Data Modelling Basic Constructs of the ERM and ERD Types
Data Modelling Basic Constructs of the ERM and ERD Types
Relationship Model
Basic Constructs of E-R Modeling 2
Classified by:
i. degree,
ii. connectivity,
iii. cardinality,
iv. direction,
v. and existence
Not all modeling methodologies use all these classifications.
1. Degree of Relationships 8
A many-to-many (M:N) relationship is when for one instance of entity A, there are
zero, one, or many instances of entity B and for one instance of entity B there are
zero, one, or many instances of entity A.
One entity from A can be associated with more than one entity from B and vice versa.
An example is:
“Employees can be assigned to no more than two projects at the same time;
projects must have assigned at least three employees.”
A single employee can be assigned to many projects; conversely, a single project
can have assigned to it many employees.
Cardinality between employees and projects is 2
Cardinality between projects and employees is 3
One – to – One, One – to – Many and Many – to – Many 14
Mapping
The entity relationship diagram was introduced by Chen in 1976.
In this ERD, entities are represented by a box (rectangle) and relationship
types are symbolized by a diamond.
A double rectangle and a double diamond represent a weak entity
type and a weak relationship,respectively.
Attributes are represented by oval symbols.
"Many" cardinality is indicated with the "N" near the entity's box, while a
"1" indicates "one".
Symbols of Chen’s notation 19
One – to – One One – to Many
Many – to – Many Entity and attributes
Crow’s Foot Notation 20
The crow's foot notation
was invented by
Gordon Everest, who
originally used the term
"inverted arrow" but
now just calls it a "fork".
For cardinality, a fork or
crow's foot intuitively
indicates "many", by its
many "toes".
Entity and Attribute notation
21
Martin/Crow’s foot