You may make a copy of a worksheet and complete this activity, type your answers in any text editor, or simply write on paper(s).
You may work alone or with 3-4 other students in this course.
The following database scenario includes partial information. You may make any reasonable assumptions, include appropriate constraints or restrictions, and come up with appropriate information (attributes) to maintain in a database. Remember to document your assumptions.
Imagine you are designing a database for a Santa's workshop. Santa has many Elves as helpers and he needs to design a database to keep track of them. The database needs to store information about the following:
Elf(badge, name, wname)
–- FK: wname references Workshop(wname)
is_supervised(badge, sbadge)
–- PK: badge, an elf can have at most one supervisor,
a supervisor can supervise many elves
–- FK: badge references Elf(badge)
–- FK: sbadge references Elf(badge)
Workshop(wname, location)
Toy(toy_id, toy_name)
Built_in(toy_id, wname)
–- FK: toy_id references Toy(toy_id)
–- FK: wname references Workshop(wname)
Evaluation(badge, rater, rate_date, rating)
-- FK: badge references Elf(badge)
-- FK: rater references Elf(badge)
-- assume rating is of type INT
CC-BY-NC-SA 4.0 license.