Professional Documents
Culture Documents
Problem 1.a:
A hospital has a large number of registered physicians. Attributes of PHYSICIAN include Physician ID
(the identifier) and Specialty. Patients are admitted to the hospital by physicians. Attributes of PATIENT
include Patient ID (the identifier) and Patient Name. Any patient who is admitted must have exactly one
admitting physician. A physician may optionally admit any number of patients. Once admitted, a given
patient must be treated by at least one physician.
A particular physician may treat any number of patients, or may not treat any patients. Whenever a patient
is treated by a physician, the hospital wishes to record the details of the treatment (Treatment Detail).
Components of Treatment Detail include Date, Time, and Results.
Problem 1.b:
The loan office in a bank receives from various parties requests to investigate the credit status of a
customer. Each credit request is identified by a Request ID and is described by a Request Date and
Requesting Party Name. The loan office also received results of credit checks. A credit check is identified
by a Credit Check ID and is described by the Credit Check Date and the Credit Rating. The loan office
matches credit requests with credit check results. A credit request may be recorded before its result
arrives; a particular credit result may be used in support of several credit requests. Draw an ERD for this
situation. Now, assume that credit results may not be reused for multiple credit requests.
Problem 1.c:
An art museum owns a large volume of works of art. Each work of art is described by an item code
(identifier), title, type, and size; size is further composed of height, width, and weight. A work of art is
developed by an artist, but the artist for some works is unknown. An artist is described by an artist ID
(identifier), name, date of birth, and date of death (which is null for still living artists). Only data about
artists for works currently owned by the museum are kept in the database. At any point in time, a work of
art is either on display at the museum, held in storage, away from the museum as part of a traveling show,
or on loan to another gallery. If on display at the museum, a work of art is also described by its location
within the museum. A traveling show is described by a show ID (identifier), the city in which the show is
currently appearing, and the start and end dates of the show. Many of the museum works may be part of a
given show, and only active shows with at least one museum work of art need be represented in the
database. Finally, another gallery is described by a gallery ID (identifier), name, and city. The museum
wants to retain a complete history of loaning a work of art to other galleries, and each time a work is
loaned, the museum wants to know the date the work was loaned and the date it was returned.
Part 2: Average Category
Problem 1:
Wally Los Gatos, owner of Wally’s Wonderful World of Wallcoverings, has hired you as a consultant to
design a database management system for his chain of three stores that sells wallpaper and accessories.
He would like to track sales, customers, and employees. After an initial meeting with Wally, you have
developed a list of business rules and specifications to begin the design of an E-R model:
Our friend Wally Los Gatos (see Problem 1), realizing that his wallcovering business had a few
wrinkles in it, decided to pursue a law degree at night. After graduating, he has teamed up with Lyla El
Pàjaro to form Peck and Paw, Attorneys at Law. Wally and Lyla have hired you to design a database
system based upon the following set of business rules. It is in your best interest to perform a thorough
analysis, to avoid needless litigation.
Problem 1:
An international school of technology has hired you to create a database management system to assist in
scheduling classes. After several interviews with the president, you have come up with the following list
of entities, attributes, and initial business rules:
• Room is identified by Building ID and Room No and also has a Capacity. A room can be either
a lab or a classroom. If it is a classroom, it has an additional attribute called Board Type.
• Media is identified by MType ID and has attributes of Media Type and Type Description. Note:
Here we are tracking type of media (such as a VCR, projector, etc.), not the individual piece of
equipment. Tracking of equipment is outside of the scope of this project.
• Computer is identified by CType ID and has attributes Computer Type, Type Description, Disk
Capacity, and Processor Speed. Please note: As with Media Type, we are tracking only the type
of computer, not an individual computer. You can think of this as a class of computers (e.g., PIII
900MHZ).
• Instructor has identifier Emp ID and has attributes Name, Rank, and Office Phone.
• Timeslot has identifier TSIS and has attributes Day Of Week, Start Time, and End Time.
• Course has identifier Course ID and has attributes Course Description and Credits. Courses can
have one, none, or many prerequisites. Courses also have one or more sections.
• Section has identifier Section ID and attribute Enrollment Limit.
After some further discussions, you have come up with some additional business rules to help you
create the initial design:
Problem 2:
Wally Los Gatos and his partner Henry Chordate have formed a new limited partnership, Fin and Finicky
Security Consultants. Fin and Finicky consults with corporations to determine their security needs. You
have been hired by Wally and Henry to design a database management system to help them manage their
business. Due to a recent increase in business, Fin and Finicky has decided to automate its client tracking
system. You and your team have done a preliminary analysis and come up with the following set of
entities, attributes, and business rules:
Consultant
There are two types of consultants: business consultants and technical consultants.
Business consultants are contacted by a business in order to first determine security
needs and provide an estimate for the actual services to be performed. Technical consultants
perform services according to the specifications developed by the business consultants.
Employee ID (identifier), Name, Address (which is composed of Street, City, State, and
Zip Code), Telephone, Date Of Birth, Age, Business Experience (which is composed of
Number of Years, Type of Business [or businesses], and Degrees Received).
Attributes of technical consultant are the following:
Employee ID (identifier), Name, Address (which is composed of Street, City, State, and
Zip Code), Telephone, Date Of Birth, Age, Technical Skills, and Degrees Received.
Customer
Customers are businesses that have asked for consulting services. Attributes of customer
are Customer ID (identifier), Company Name, Address (which is composed of Street, City, State,
and Zip Code), Contact Name, Contact Title, Contact Telephone, Business Type, and Number Of
Employees.
Location
Customers can have multiple locations. Attributes of location are Customer ID
(identifier), Location ID (which is unique only for each Customer ID), Address (which is
composed of Street, City, State, and Zip Code), Telephone, and Building Size.
Service
A security service is performed for a customer at one or more locations. Before services
are performed, an estimate is prepared. Attributes of service are Service ID (identifier),
Description, Cost, Coverage, and Clearance Required.
• Estimates, which have characteristics of Date, Amount, Business Consultant, Services, and
Customer
• Services Performed, which have characteristics of Date, Amount, Technical Consultant,
Services, and Customer
In order to construct the EER diagram, you may assume the following:
A customer can have many consultants providing many services. You wish to track both actual
services performed as well as services offered. Therefore, there should be two relationships
between customer, service, and consultant, one to show services performed and one to show
services offered as part of the estimate.
Project Requirements:
Create an ERD, RDM and MySQL database for the given problems.
MySQL Requirements: Create a MySQL database for each problem containing the tables and
data. Provide at least 10 REALISTIC DATA for each table column.
Submission Requirements:
Each problem should have one folder containing the following files:
1. Problem - pdf (Filename: category_prob0number.pdf)
a. Example filename: easy_prob01a.pdf
2. ERD - jpeg (Filename: erd_prob0number.jpg)
a. Example filename: erd_prob01a.jpg
3. RDM - jpeg (Filename: rdm_prob0number.jpg)
a. Example filename: rdm_prob01a.jpg
4. MySQL File - sql (Filename: sql_prob0number.sql)
a. Example filename: sql_prob01a.sql
5. Problem Folder name: problem0number
a. Example folder name: problem01a
Each team should only make one submission on or before the deadline in the GOOGLE
CLASSROOM.