Académique Documents
Professionnel Documents
Culture Documents
ERD
ENTITY RELATIONSHIP DIAGRAM
M. Rasti-Barzoki
Website: rasti.iut.ac.ir
91-2
Management Information Systems
ERD
2 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
3 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
4 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
5 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
6 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Types of entity relationships and example of their
representation:
7 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Examples
8 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Cardinalities
9 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Examples
10 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Examples
11 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Examples
12 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Examples
13 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
Database Models
A database model is a collection of logical constructs used to
represent the data structure and the data relationships found
within the database.
Two Categories of Database Models
Conceptual models focus on the logical nature of the data
representation. They are concerned with what is represented rather
than how it is represented.
Implementation models place the emphasis on how the data are
represented in the database or on how the data structures are
implemented.
14 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
15 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1. Identify Entities
16 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
17 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
18 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
19 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
ERD
Three Types of Relationships
One-to-one relationships (1:1)
Each store is managed by a single employee and each store manager
(employee) only manages a single store.
EMPLOYEE (1) manages STORE (1)
One-to-many relationships (1:M)
A painter paints many different paintings, but each one of them is painted by
only that painter.
PAINTER (1) paints PAINTING (M)
Many-to-many relationships (M:N)
An employee might learn many job skills, and each job skill might be learned
by many employees.
EMPLOYEE (M) learns SKILL (N)
20 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
21 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1:N - Add primary key from the one entity as a foreign key in
the many entity
22 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
Multiple Relationships
1 N N M
Faculty Course Student
Teaches Enrolls
23 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
N Enrolls M
Student Course
Joe
MGS 351
Sally
MGA 201
Tom
MGQ 301
Jean
MGF 301
MGB 301
24 rasti.iut.ac.ir 91-2
Management Information Systems
25 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
N Enrolls M
Student Course
Person # Course #
26 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
Student Course
Person # Course #
27 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1 N N 1
Student Course
Person # Course #
28 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1 N N 1
Student Course
Person # Course #
Person # Course #
29 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1 N N 1
Registration
Student Course
Person # Course #
Person # Course #
30 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1 N N 1
Registration
Student Course
Grade
Person # Course #
Person # Course #
31 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
1 N N 1
Registration
Student Course
Grade
Person # Course #
Person # Course #
32 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
33 rasti.iut.ac.ir 91-2
Management Information Systems
ERD
34 rasti.iut.ac.ir 91-2
Management Information Systems
35 91-2