Database Management System
Database Management System
Management
System
Lecture - 7
Entity-Relationship
Data Model
Major Components
Entities
Attributes
Relationships
Entity
Term used to mean three
different meanings
Entity type
Entity instance
Entity set
Entity Type
A name/label assigned to
items/objects that exist in an
environment and that have similar
properties
It could be person, place, event or
even concept
Entity Type
Distinguishable from other
entity types on the basis of
properties
Identified through abstraction
process
Different from External Entity
Symbols
Regular Entity Type
NAME
NAME
EMPPLOYEE
BOOK
DEPENDENTS
BOOKCOPY
Attribute
An attribute of an entity type is a
defining property or quality of the
instances of that entity type. Entity
instances of same entity type have
the same attributes. (e.g. Student
Identification, Student Name)
Domain of an Attribute
Every attribute has a domain
Set of possible values for an
attribute
The attributes in an entity set get
the values from the same domain
Types of Attributes
Single vs composite
Single valued vs multi-valued
Stored vs derived
Example
Experience
empId
empName
EMPLOYEE
dateHired
emp_Qual
street
address
houseNo
Thanks
Database
Management
System
Lecture - 7