You are on page 1of 1

1.

1 Types of Relationships
 The database design requires creating various entity sets and
establishing the relationship between the entity sets within the
database. The different database management software packages
handle the creation and use of relationship in different manners.
Depending upon the type on interaction, the relationship is classified
in to three categories.
i)One –to-one relationship:
 A one-to-one relationship is written as 1:1 in short form.
 It exists between two entity sets X and Y. If an entity set X has only
one matching entity in entity set Y, and vice versa.
 Example: A College has one Principal. A Department is lead by one
Head.
ii)One-to-Many relationship:
 A one-to-one relationship is written as 1:M in short form.
 It exits between two entity sets X and Y. If an entity in entity set X has
many matching entities in entity set Y, but an entity in entity set Y
has only one matching entity in entity set X.
 Example: A faculty teaches to Many Students of a class room, but the
students had a relationship with one faculty member.
iii)Many-to-Many relationship:
 It also write in M:N (or) M:M
 It exists of two entity set X and Y. If an entity in entity set X has many
matching entities inentity set Y and an entity in entity set Y has many
matching entities in entity set X.
 Example: Many Courses availed for Many Students.

You might also like