Professional Documents
Culture Documents
Entity-Relationship (E/R) Model: DR P Sreenivasa Kumar
Entity-Relationship (E/R) Model: DR P Sreenivasa Kumar
(E/R) Model
Dr P Sreenivasa Kumar
Professor
CS&E Dept I I T Madras
Entity-Relationship (E/R) Model
Widely used conceptual level data model
• proposed by Peter P Chen in 1970s
Data model to describe the database system at the requirements
collection stage
• high level description.
• easy to understand for the enterprise managers.
• rigorous enough to be used for system building.
Concepts available in the model
• entities and attributes of entities.
• relationships between entities.
• diagrammatic notation.
student entity
StudName – name of the student.
RollNumber – the roll number of the student.
Sex – the gender of the student etc.
Fname Mname
Lname
Program
RollNumber
StudName
Student AdmissionYear
Sex
Age EmailAddress
DateOfBirth
A B
R
M N
E1 R E2
Address
HostelName
Name
RoomNo
1 1 Hostel
RollNo Student ResidesIn
Room
Address
Name Location
Name Phone
N 1
Sex Professor belongsTo Department
(many-to-one)
Address
Name RoomNo
Name Phone
1 N
guides Student
Sex Professor
Value Duration
Address
Start End
Date Date
E1 R E2
total partial
Name Location
Name Phone
N 1
Sex Professor belongsTo Department
(many-to-one)
Address
Name RoomNo
Name Phone
1 N Student
Sex Professor guides
Address Address
one-to-many
N 1
E1 R E2
is equivalent to
(1,1) (0,N)
E1 R E2
M N
Student enrolls Course
Grade
N 1
Professor belongsTo Department
joinDate
M N
Professor worksFor SponsoredProject
percentTime
prereqOf
Course
course
Role Names
Prof P Sreenivasa Kumar 24
Department of CS&E, IITM
Weak Entity Sets
Weak Entity Set: An entity set whose members owe their
existence to some entity in a strong entity set.
entities are not of independent existence.
each weak entity is associated with some entity of the
owner entity set through a special relationship.
weak entity set may not have a key attribute.
Double wall
S R W box
Always total
Owner entity
Identifying relationship
has RoomNo
CourseID Course Section
Section
HNo Street
City
HostelName
EmailId PIN
Address
RoomNo
RollNo
dd ress
alA
L oc
Name Student
DateOfBirth
Age
Sex
Location Credits
Name CourseID Name
Phone
HOD
Department Course
DeptNo
ProfID Amount
PhoneNumber
StartDate EndDate
ProjectId
Section
Timing
SectionID ClassRoom
N 1
Student belongs Department
M
To
1
1
enrolls works
f fers For
N o
N
N
1
Course 1 Professor
M N M
hasSection teaches
prerequisite works
Of
N
On
N N
Section Project
canSupply
ser s
ve
s us e
Project
canSupply