Relationship & its Types - 👑 सार्थक मुंड S3 🤴🏻

Relationship & its Types

Relationship & its Types

What is relationship ? Describe different types of relationship ?

◾A relationship is used to describe the relation between entities.
Diamond is used to represent the relationship.
Relationship & its Types

Types of relationship :-

The types of relationship are as follows :

1. One to one relationship :-

◾When only one instance of an entity is associated with the relationship, then it is known as one to one relationship.
For example : A female marry to one male and a male can marry to one female (Only in INDIAN Culture).
Relationship & its Types
2. One to many relationship :-
◾When only one instance of entity at the left, and more than one instance of entity on the right associates with the relationship then this is known as a one to many relationship.
For Example : scientist can invent many inventions, but the invention is done by only the specific scientist.
Relationship & its Types

3. Many to one relationship :-

◾When more than one instance of the entity on the left, and only one instance of an entity on the right associates with the relationship then it is known as many to one relationship.
For Example : Students enroll for one course, but a course can have any students.
Relationship & its Types

4. Many to many relationship :-

◾When more than one instance of the entity on the left, and more then one instance of an entity on the right associates with the relationship then it is known as a many to many relationship.
For Example : Employee can assign by many projects and project can have many employees.
Relationship & its Types
Read : ER Model
Must Read :-
  1. Blogger Tutorial
  2. C Programs
  3. C++ Programs
  4. Java Programs
  5. Python Programs
  6. Programming Notes 
  7. Questions & Answers
  8. My Codes : HTML, CSS & JS
  9. All Subject Notes
Previous article
Next article

2 Comments to

Articles Ads

Articles Ads 1

Articles Ads 2

Advertisement Ads