ER Model Steps in Database Design Process Entities, Attributes, and Associations ER Notations
ER Model Steps in Database Design Process Entities, Attributes, and Associations ER Notations
Content
❑ ER Model
❑ Steps in Database Design Process
❑ Entities, Attributes, and
Associations
❑ ER Notations
Primary key: one of the candidate keys can become PK of an entity type.
Alternate keys: The candidate keys other than the PK, are known as
alternate keys.
Relationship Type
Attribute
Key Attribute
Multivalued Attribute
Composite Attribute
Derived Attribute
Manages
Manager Employee
Degree of a Relationship
Manages
• If there are two entity types involved it is a binary relationship Manager Employee
type
Employee
1 is married to 1
Man Women
One to one (1:1) relationship
1 Manages m
Manager Employee
One to many (1:M) relationship
m 1
Studies
Student Course
Many to one (M:1) relationship
m n
Teaches
Lecturer Student
Many to many (M:N) relationship
If all the entities of an entity type are involved in the relationship then that entity type’s
involvement said to be total in that relationship. In the below relationship if each employee is
associated with at least one dept. Then the participation of EMP is total. Here, EMP works
for DEPT.
If, only few entities of the set are involved the participation is partial.
E R
1
E2
EMP DEPT Association Role:
Worker Employer
* 1
Multiplicity
EMP DEPT
SUPERVISION
(0, N) WORKS_ON
Controlled
Employee (1, 1)
(1, N) project
Project
PROJECT
DEPENDENTS_OF
Name
Dependent Number
(1, 1)
Location
DEPENDENT
Relationship
Name Sex Bdate
Now draw an ER diagram for the above requirement. Assume necessary data
which is missing in the question. The ER model should include- relationships,
max,
min- cardinality, participation conditions
14 Database Design & Applications
Summary
✔ Various steps in Database Design Process
✔ What is ER Modeling
✔ Concepts and notations used in ER
✔ Representing Constraints in ER Modeling
✔ Exercise