Escolar Documentos
Profissional Documentos
Cultura Documentos
Matrix Diagrams
Matrix Diagrams
Objectives
This lesson covers the following objectives:
Identify relationships using a matrix diagram
Draw an ERD from a matrix diagram
Matrix Diagrams
Purpose
TEACHER
It is useful to know
more than one
way to discover
relationships.
COURSE
CLASS
TEACHER
COURSE
STUDENT
CLASS
EXAM
SEMESTER
CAFETERIA
GRADE
CLASSROOM
SCHOOL
etc.
CLUB
SCHOOL
EQUIPMENT
MAINTENANCE
STAFF
Matrix Diagrams
Purpose (cont.)
TEACHER
Using a matrix
diagram,
especially when
you are dealing
with many entities,
is a good way to
make sure that
you havent
missed any
relationships.
COURSE
CLASS
TEACHER
COURSE
STUDENT
CLASS
EXAM
SEMESTER
CAFETERIA
GRADE
CLASSROOM
SCHOOL
etc.
CLUB
SCHOOL
EQUIPMENT
MAINTENANCE
STAFF
Matrix Diagrams
Business Scenario
"I work for a travel agency.
I keep a record of the
countries that our
customers have visited
and the landmarks theyve
seen in each country. It
helps us customize tours
for them."
TRAVELER
COUNTRY
LANDMARK
TRAVELER
COUNTRY
TRAVELER
COUNTRY
LANDMARK
MATRIX DIAGRAM
LANDMARK
Matrix Diagrams
Matrix Diagrams
TRAVELER
Relationships
discovered via the
matrix diagram are
drawn on the ERD.
TRAVELER
COUNTRY
LANDMARK
COUNTRY
visit
visited by
seen by
located in
have seen
the location of
To avoid confusion, be
consistent in writing to
and reading from the
matrix only in one
correct: COUNTRY visited by TRAVELER
direction.
LANDMARK
Matrix Diagrams
TRAVELER
TRAVELER
COUNTRY
LANDMARK
TRAVELER
COUNTRY
visit
seen by
the location of
located in
visit
COUNTRY
visited by
the location of
located in
Seen by
have seen
visited by
have seen
LANDMARK
LANDMARK
Matrix Diagrams
TRAVELER
TRAVELER
COUNTRY
LANDMARK
TRAVELER
COUNTRY
LANDMARK
visit
have seen
visited by
seen by
the location of
located in
visit
COUNTRY
visited by
the location of
have seen
located in
Seen by
LANDMARK
Matrix Diagrams
Terminology
Key terms used in this lesson included:
Matrix diagram
Matrix Diagrams
Summary
In this lesson, you should have learned how to:
Identify relationships using a matrix diagram
Draw an ERD from a matrix diagram
10