ER Diagram

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Develop an Entity Relationship Diagram (ERD) for each of the following case studies

showing entities, relationships, cardinalities, and optionality.

1. Patty’s Playschool

Patty’s Playschool is a child daycare center. A parent registers their child or


children at the school using a registration form. A parent can submit more
than one registration form. Each room in the daycare is assigned an age
group. For example, an infant is under 1 year of age and toddlers are from 1
to 3 years of age. A child is assigned to a room based on their age and
availability of space. A room may be assigned to one or more employees. An
employee can only be assigned to one room. The minimum number of
employees required for a room is determined by the number of children
assigned to the room and the child: staff ratio identified by the government.
For example, one employee can care for 5 infants or 8 toddlers.

Entities
 Parent
 Child
 Registration Form
 Age group
 Room
 Employee

Relationship
 Parent registers child.
 Parent Submits Registration Form
 Room is assigned an age group.
 A Child is assigned to the room.
 Room is assigned to the employee
 Employee is assigned to room.

Regi
Parent ster Child

Sub
mits
Child

Registration
Form Assi
gn

Age
group

Assi
Room gn

Assi
gn Employee
1. Cooking Club

A cooking club organizes several dinners for its members. The purpose of
the club is to allow several members to get together and prepare a dinner for
the other members. The club president maintains a database that plans each
meal and tracks which members attend each dinner and also keeps track of
which members create each dinner.

Each dinner serves many members and any member is allowed to attend.
Each dinner has an invitation. This invitation is mailed to each member. The
invitation includes the date of the dinner and location.

Each dinner is based on a single main course and a single dessert. This main
course and dessert can be used again for other dinners.

Entities
 Club
 Dinner
 Member
 Invitation
 Main course
 Dessert

Relationship
 Club organizes several dinners.
 The club allows several members.
 Members create dinner.
 Invitation is mailed to members.
 Dinner has an invitation.
 Each dinner is based on main course.
 Each dinner is based on dessert.

Club Organ Dinners


izes

Organ Creat
izes e

Members

You might also like