Lecture 5
Lecture 5
Lecture 5
MODEL
PART 1
S
STEPS IN DEVELOPING A
DATABASE
Requireme
nts
analysis
Applicatio Conceptua
ns and l Database
security design
Physical Logical
Database Database
design design
Schema
refinemen
t
S
CONCEPTUAL DESIGN
BU Information system
ER model is used to show the Conceptual
schema of an organisation.
Independent of specific data model or
DBMS. Physical
ERM
Relation
data
The model is later transformed into a Logical al Model
storage
model (e.g. relational) on which the physical Concept
database is built. Logical Physical
ual
model model
model
Notations in Entity Relationship
Diagram
ER MODEL BASICS
nam
The basics of ER modelling e addre
ssn
ss
Entity Employe
Relationship e
Attribute Works_i
n
Departme
nt D_nam
D_id
e
ENTITY AND ENTITY SET
Entity type name
(singular, no spaces,
Entity: Real-world object distinguishable capital letter at start
from other objects. An entity is described E n tityNa m e of each word)
using a set of attributes. Each attribute has
a domain. space for attributes
Participation • full/mandatory
• or partial/optional
constraint
EXAMPLE:
Every employee works for
employee Worksfor
exactly one department and Department
DEGREE=2
EXAMPLE:
Every employee works for
employee Worksfor
exactly one department and Department
DEGREE=2
CARDINALITY RATIO = MAX (1,N)
PARTICIPATION/EXISTENCE = MIN
(1,0)
Works for
N 1
EXAMPLE: emp dept
N
1
Every employee works for
Worksfor
exactly one department and employee Department
DEGREE=2
CARDINALITY RATIO = MAX (1,N)
PARTICIPATION/EXISTENCE = MIN
(1,0)
Supervis
Employe Works_I Departm
es
e n ent
Staff
Binary
Relationship
Unary or
Employe Works_I Departm
e n ent Recursive
Relationship Student
Ternary Location Welfare
Relations Project
hip Employe Works_I Departm
e n ent
Location
Project
Employe Works_I Departm P&D
Quaterna
e n ent N-ary
ry Relations
Project Complex hip
Relations
Relationship
hip
CARDINALITY AND ORDINALITY
Itself
A subtype entity
An instance entity
A supertype entity
MCQ
Parent
Child
Instance
Subtype
MCQ
Entity
Cardinality
Schema
Attributes
REFERENCES
http://www.agiledata.org/essays/dataModeling101.html
https://www.vertabelo.com/blog/chen-erd-notation/
https://www.guru99.com/dbms-keys.html
http://www.mathcs.emory.edu/~cheung/Courses/377/Syllabus/2
-ER/ER-diagram.html
https://www.studytonight.com/dbms/
https://www.youtube.com/watch?v=QpdhBUYk7Kk
https://www.youtube.com/watch?v=-CuY5ADwn24&t=110s
https://www.youtube.com/watch?v=XUdNVaSikqY