0% found this document useful (0 votes)
162 views

DD3 Practice Activities - Answers

This document contains practice activities for identifying relationships, drawing ER diagrams, and creating matrix diagrams. The activities cover vocabulary like cardinality and optionality, and involve drawing diagrams and describing relationships for concepts like employees and jobs, hair stylists and clients, teachers and classes. Sample diagrams are provided to demonstrate one-to-many, many-to-many, and optional relationships between entities.

Uploaded by

gery sumual
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views

DD3 Practice Activities - Answers

This document contains practice activities for identifying relationships, drawing ER diagrams, and creating matrix diagrams. The activities cover vocabulary like cardinality and optionality, and involve drawing diagrams and describing relationships for concepts like employees and jobs, hair stylists and clients, teachers and classes. Sample diagrams are provided to demonstrate one-to-many, many-to-many, and optional relationships between entities.

Uploaded by

gery sumual
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practice Activity for DD 3.1 - 3.

4
Gery J. Sumual (01123574291-53)

3.1 Identifying Relationships


Vocabulary: cardinality, relationships, optionality
Try It / Solve It:
1. Each EMPLOYEE must have responsibility of one or more JOBs; each JOB may be held by one
and only one EMPLOYEE.
2. Each WAITER may take one or more ORDERs; each ORDER must be taken by one and only one
WAITER.
3. Each PARENT may pick up one or more CHILDs; each CHILD must get picked up by one and
only one PARENT.
4. Each TEACHER may tutor one or more STUDENTs; each STUDENT may get tutored by one or
more TEACHERs.
5. Each STUDENT must be supervised by one or more LECTURERs; each LECTURER must be a
supervisor of one or more STUDENT.
3.2 ER Diagramming Conventions
Vocabulary: softbox
Try It / Solve It:
1.

HAIRSTYLIST CLIENT

 social-  phone
security number
number • first name
• first name • last name
• last name  hairstylist
• address preference
• phone
number
Each HAIRSTYLIST may serve one or more CLIENTs; each CLIENT must be served by one and
only one HAIRSTYLIST.
2.

MUSICIAN
BAND  Phone
 ID number
• first name
• Band name
• last name
• Hourly rate
• address
• hourly rate

Each BAND must consist of one or more MUSICIANs; each MUSICIAN may belong to one
and only one BAND.
3.

TEACHER CLASS COURSE

 Phone  ID  code
number • Day taught • class name
• first name • Time
• last name • Classroom
• address
• email address

Each TEACHER may teach in one or more CLASSes; each CLASS must be held by one and
only one TEACHER; each COURSE must associate with one or more CLASSes; each CLASS
must have one and only one COURSE.

3.3 Speaking ERDish and Drawing Relationships


Vocabulary: ERDish
Try it/ Solve it:
1. ‘b’
2. Crow’s foot on the side of EMPLOYEE and single toe on the side of DEPARTMENT
3. Solid line on the side of both EMPLOYEE and DEPARTMENT
4. Each CAMERA may used to take with one or more PHOTOGRAPHs; each PHOTOGRAPH must
be taken with one and only one CAMERA.
5.
• Each PERSON must be born in one or more TOWNs; each TOWN may be the birthplace of
one and only one person. Both relationships does not make sense in the real world, but if
the relationship is flipped it does.
• Each PERSON must be living in one and only one TOWN; each TOWN may be the
hometown of one or more PERSONs. The first one can’t be justified for the people that
don’t live in any town, people like Tarzan for example; and the second is also can’t be
true because every town is a hometown of someone.
• Each PERSON may be the visitor of one or more TOWNs; each TOWN must be visited by
one or more PERSONs. The first relation holds true, but the second doesn’t considering
that there might be an isolated town yet to be visited.
• Each PERSON may be the mayor of one and only one TOWN; each TOWN may be
governed by one and only one person. Both relationships are highly likely to hold true in
the real world.

3.4 Matrix Diagrams


Vocabulary: Matrix diagram
Try it/ Solve it:
1.
CAMERA PHOTOGRAPH SUBJECT
CAMERA Takes Takes
PHOTOGRAPH Taken with Have
SUBJECT Taken by featured in
2.

Runner City for Race Race Type Running Event


Choose to
Runner Occupy Choose
participate in
City for Race Occupied by Have Prepared for
Race Type Specified by To be done in classify
Running Event Chosen by Located in have

Choose to
Prepared for
participate in

Chosen by
Located in

have classify

You might also like