3. Mapping Cardinality
Mapping cardinality or cardinality ratios express the
number of entities to switch another entity can be
associated via a relationship set.
18 June 2019 3/9
Mapping Cardinality in E-R Model
4. Types of Mapping Cardinality
For a binary relationship set the mapping cardinality must
be one of the following types:
1.One to one
2.One to many
3.Many to one
4.Many to many
18 June 2019 4/9
Mapping Cardinality in E-R Model
5. Mapping Cardinality in E-R Model
One-to-one relationship:
An entity in A is associated with at most
(only) one entity in B is associated with at
most (only) one entity in A.
A customer is connected with only
one loan using the relationship
borrower and a loan is connected
with only one customer using
borrower.
18 June 2019 5/9Mapping Cardinality in E-R Model
6. Mapping Cardinality in E-R Model
One-to-Many relationship:
An entity in A is associated with any
number (zero or more) of entities in
Band an entity in B is associated with at
most one (only) entity in A.
In the one to many relationship a
loan is connected with only one
customer using borrower and a
customer is connected with more
than one loans using borrower.
18 June 2019 6/9
Mapping Cardinality in E-R Model
7. Mapping Cardinality in E-R Model
Many-to-one relationship:
An entity in A is associated with at
most (only) one entity in B and an
entity in B is associated with any
number (zero or more) of entities in A.
In a many-to-one relationship a
loan is connected with more than
one customer using borrower and
a customer is connected with only
one loan using borrower.
18 June 2019 7/9
Mapping Cardinality in E-R Model
8. Mapping Cardinality in E-R Model
Many-to-many relationship:
An entity in A is associated with any number
(zero or more) of entities in Band an entity in
B is associated with any number (zero or
more) of entities in A.
A customer is connected with
more than one loan using
borrower and a loan is
connected with more than one
customer using borrower.
18 June 2019 8/9
Mapping Cardinality in E-R Model