Conceptual Design
Conceptual Design
The entity relationship (ER) data model has existed for over 55 years
when Peter Chen proposed ER Diagrams in 1971 to create a uniform
convention that can be used as a conceptual modeling tool.
ER modelling is based on three concepts:
I Entities: Objects or things in the real-world, e.g., student, course,
section, etc.
I Attributes: characteristics or properties of entities, e.g., roll no, class,
and age of student entity
I Relationships: dependency or association between entities, e.g., follows
is a relationship between student and course in a learning environment
Entity
Attribute Attribute Attribute Attribute
Weak Entity
Attribute
Key Attribute
Composite
Attribute
Relationship Multi-valued
Attribute
Identifying
Relationship Derived Attribute
EMPLOYEE
I DEPARTMENT
DEPARTMENT
Weak entity: an entity that does not have its own primary key and
depends on the primary key of other entities (identifying owners) with
which it is associated.
Identifying relationship: a relationship between the weak entity and
the identifying owner.
Partial key: attributes that uniquely identify entities within the
identifying relationship.
In ER diagram, weak entity is denoted as double rectangle:
DEPENDENT
street
state
BirthDate
EMPLOYEE
Age
EMPLOYEE SSN
Domain constrained
I e.g., SSN number must be exactly 10 decimal digits
Prof. Dr. Muhammad Saleem Vighio CSC.222 - Database Systems 15 / 40
Relationships
MANAGES
PROJECT
EMPLOYEE DEPARTMENT
Course
Requires
Staff
A class requires one room; while a room can be scheduled for many classes.
In ER Diagrams:
I partial participation is denoted by single line cardinality ratios are
mentioned as labels of edges (more precise cardinality limits can be
associated with relationship types)
Draw – https://app.diagrams.net/
Visio
ERDPlus – https://erdplus.com/