New Delhi, India
minigranth@gmail.com

ER Diagram : DBMS

Created with Sketch.

DBMS Tutorial



[fblike]

ER Diagram : Introduction

  • An Entity Relationship Model is generated through ER Diagram i.e. known as Entity Relationship Diagram which constitutes of various symbols with the help of which entities, attributes and relationships are represented diagrammatically. Each of these components has a separate notation. Let’s discuss them together.

1. Entity : The entity is denoted through a rectangle. These rectangles are named according to the names of entities.

 

ER Diagram : Entity

ER Diagram : Entity

 

For example : Let the entities be Company, Course, Class and Loan. Then they will be represented as :

 

ER Diagram : Entity Example

Entity Example

 

2. Weak Entity : When attributes of an entity are not capable of determining the entity uniquely, it is called as weak entity. Weak entity is denoted through a double rectangle.

 

ER Diagram : Weak Entity

ER Diagram : Weak Entity

 

For example : In a bank, bank branch can be deduced as a weak entity as its attributes are not enough to determine it uniquely.

 

ER Diagram : Weak Entity Example

Weak Entity Example

 

3. Relationship : The relationship in an Entity Relationship Diagram is denoted through a diamond.

 

ER Diagram : Relationship

ER Diagram : Relationship

 

For example : A person works in a company can be described using a relationship as :

 

ER Diagram : Relationship Example

Relationship Example

 

4. Attributes : Attributes in Entity Relationship Diagram are denoted through an ellipse.

 

ER Diagram : Attribute

ER Diagram : Attribute

 

For example : A university acting as an entity can have multiple attributes as name, location, courses, colleges etc.

 

ER Diagram : Attribute Example

Attribute Example

 

5. Key Attribute : Key attribute is a type of attribute which alone can determine the entity uniquely. These are denoted through an ellipse with underline.

 

ER Diagram : Key Attribute

ER Diagram : Key Attribute

 

For example : A bank customer can be uniquely identified through his/her account number.

 

ER Diagram : Key Attribute Example

Key Attribute Example

 

6. Multi valued Attribute : Multi valued attributes in Entity Relationship Diagram are denoted through double ellipse.

 

ER Diagram : Multi Valued Attribute

ER Diagram : Multi Valued Attribute

 

For example : An account holding customer of bank can have multiple emails, multiple mobile numbers and even multiple addresses(Permanent and Corresponding). They can be termed as multi valued attributes.

 

ER Diagram : Multi Valued Attribute Example

Multi Valued Attribute Example

 

7. Composite Attributes : Composite attributes in Entity Relationship Diagram are denoted by linked ellipse.

 

ER Diagram : Composite Attribute

ER Diagram : Composite Attribute

 

For example : Consider the name of a person(First Name + Middle Name + Last Name).

 

ER Diagram : Composite Attribute Example

Composite Attribute Example

 

8. Derived Attribute : Derived attributes in Entity Relationship Diagram are represented using dashed ellipse.

 

ER Diagram : Derived Attribute

ER Diagram : Derived Attribute

 

For example : Consider a class having some students. Each of them can have their name, address and age. We can derive the average age of the student from already present data in the database.

 

ER Diagram : Derived Attribute Example

Derived Attribute Example

 

9. Total Participation of Entity in Relation : In this type, every entity is fully involved and linked in the relationship and this participation is denoted using double lines.

 

Total Participation

Total Participation

 

10. Partial Participation of Entity in Relation : As the name suggests, some of the entities participates in the relation fully and some of them participates partially. Partial relation is denoted using single line.

 

Partial Participation

Partial Participation