You are on page 1of 2

Home Work I: S307

Please staple this sheet with your answer sheet!


Name (print):
Question
Qs 1
Qs 2
Qs 3
Qs 4
Total

Maximum Points
15
15
10
10
50

**I have neither given nor received unauthorized aid on


this deliverable. **

Points Scored

_________________________________
(sign)

Draw an EER diagram for each of the following descriptions below. State any of your assumptions clearly.
1. Design an EER diagram for symphony orchestra: (15 points)
CONCERT SEASON: The season during which a series of concerts will be performed. Identifier is
opening date.
CONCERT: A given performance of one or more compositions. Identifier is concert number.
Another important attribute is concert date; each concert typically has more than one concert date.
COMPOSITION: Compositions to be performed at each concert. Identifier is composition ID.
Other attributes include composition name, composer name, and movement (which, in turn, is
composed of movement number and movement name); many, but not all, compositions have
multiple movements.
CONDUCTOR: Person who will conduct the concert. Attributes include conductor ID (identifier)
and conductor name.
SOLOIST: An artist who performs a given composition. Identifier is soloist name.
During further discussion you discover the following:
A concert season schedules one or more concerts. A particular concert is scheduled for only one
concert season.
A concert includes the performance of one or more compositions. A composition may be performed
at one or more concerts or may not be performed.
For each concert, there is one conductor. A conductor may conduct any number of concerts or may
not conduct any concert.
Each composition may require one or more soloists or may not require a soloist. A soloist may
perform one or more compositions or may not perform any composition. The symphony orchestra
wants to record the date when a soloist last performed a given composition.

2. Design an EER diagram for Projects, Inc.: (15 points)


Projects, Inc., (PI) is an engineering firm with approximately 500 employees. A database is required
to keep track of all employees, projects, departments and vendors. Every employee has a unique
number (that is assigned by the firm), name, date of birth, and age; each employee is given a job title
(e.g., engineer, secretary, and so on). If an employee is currently married to another employee of PI
the date of marriage and who is (currently) married to whom must be stored; however, no record of
marriage is required if an employees spouse is not an employee.
There are eleven different departments, each with a unique name. An employee can report to only
one department. Each department has an address and phone number/s.
To procure various kinds of equipment, each department deals with many vendors; each vendor in
turn can deal with zero to many departments. A vendor typically supplies equipment to many
departments. We are required to store the name and address of each vendor and the date of the last
meeting between a department and a vendor.
Many employees can work on a project. An employee can work on many projects (e.g., Southwest
refinery, California Petrochemicals, and so on) but can only be assigned as the project manager for at
most one project. Projects are distinguished by project numbers and we must store the estimated cost
of each project.
The users of the PI database often want to know the departments and vendors that are located in a certain
zip code (e.g., 47401). They also enquire about the phone number/s for a given department.
3. Design an EER diagram to represent the requirements described below. (10 points)
A bank has three types of accounts: checking, savings and loan. Following are the attributes for each
type of account:
CHECKING: Account number, date opened, balance, service charge
SAVINGS: Account number, date opened, balance, interest rate
LOAN: Account number, date opened, balance, interest rate, payment
Assume that each bank account must be a member of exactly one of these subtypes.
4. Design an EER diagram to represent the requirements for Arts, Inc., below. (10 points)
Arts, Inc. (AI) has a collection of art objects. Each art object has a unique ID, year when it was created,
title and description. Art objects are categorized into three types: painting, sculpture and statue. For each
painting, AI wants to store material on which it is drawn (for example, paper, canvas, wood) and style
(for example, modern, abstract). For each sculpture, AI wants to store material (for example, wood,
stone), height and weight. Each art object is created by an artist AI wants to keep track of name of the
artist, date born, date died (if not living), country of origin, main style and total number of art objects
(created by the artist) in the museum. AI has clients who buy art objects. There are two types of
customers: retail and corporate. For both the types of customers, AI wants to store name (identifier),
address and email. A client can buy one or many art objects and each art object is bought by exactly one
client.

You might also like