Entity Relationship Data Model
Mohd Tousif
Logical Data Model - ERD
Visual representation of data that describes how data
is related to each other. Symbols used
Entity – rectangle
Attribute – Oval
Relationship – diamond
Link - line
Entity
Entity : Object that is involved in the Enterprise and
that can be distinguished from other object. Can be
a person / place / object .
Ex : Student , Course
Student
Weak Entity
•An entity that depends on other entity. Weak
entity does not have key attributes of its own.
Represented by double rectangle
PaymentLoan
Attribute
•An attribute describes a property / characteristic
of an entity.
Name
Key Attribute
•Represents the main characteristics of an entity.
Used to represent Primary keys.
id
Composite Attribute
•An attribute which have its own attributes.
Address
city state pincode
Relationship
•To establish relation between entities.
studies
Types of Relationship
• Two types of relationships
Binary
Recursive
Binary Relationship / Cardinality
• Relationship between two entities. Each entity in
relationship can participate in zero, one or more
than one instance of that relationship. It is of four
types:
One – One
One – Many
Many – One
Many - Many
•One – One
1 1
•One – Many
1 *
•Many – One
1*
•Many – Many
**
NM
Recursive Relationship
Employee
managed
manages
Course
Participant
learnt
1
*
Class
Enrolls
**
*
Taken
1
Faculty
Evaluation
handled1
*
handles
*
*
rates
1
*
*
Q & A
Thank You!

Entity Relationship (ER) Model