0% found this document useful (0 votes)
618 views4 pages

Mapping Cardinality Examples

Mapping cardinality in an ER model represents the number of entities in one entity set that are connected to an entity in another set via a relationship. For binary relationships, the mapping cardinality must be one of four types: one-to-one, one-to-many, many-to-one, or many-to-many. These describe whether an entity can be linked to one or many entities in the other set.

Uploaded by

SHRAVAN PRABHU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
618 views4 pages

Mapping Cardinality Examples

Mapping cardinality in an ER model represents the number of entities in one entity set that are connected to an entity in another set via a relationship. For binary relationships, the mapping cardinality must be one of four types: one-to-one, one-to-many, many-to-one, or many-to-many. These describe whether an entity can be linked to one or many entities in the other set.

Uploaded by

SHRAVAN PRABHU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Mapping Cardinality (cardinality constraint) in E-R

Model
• It represents the number of entities of another entity set which are
connected to an entity using a relationship set.
• It is most useful in describing binary relationship sets.
• 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

One-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 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.

One-to-many relationship

An entity in A is associated with any number (zero or more) of entities in B and 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.
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.

Many-to-many relationship
An entity in A is associated with any number (zero or more) of entities in B and 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.

You might also like