Sie sind auf Seite 1von 7

Part 1: Easy Category

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:

• Customers place orders through a branch.


• Wally would like to track the following about customers: Name, Address, City, State, Zip Code,
Telephone, Date of Birth, and Primary Language.
• A customer may place many orders.
• A customer does not always have to order through the same branch all the time.
• Customers may have one or more accounts, although they may also have no accounts.
• The following information needs to be recorded about accounts: Balance, Last payment date,
Last payment amount, and Type.
• A branch may have many customers.
• The following information about each branch needs to be recorded: Branch Number, Location
(Address, City, State, Zip Code), and Square Footage.
• A branch may sell all items or may only sell certain items.
• Orders are composed of one or more items.
• The following information about each order needs to be recorded: Order Date and Credit
Authorization Status.
• Items may be sold by one or more branches.
• We wish to record the following about each item: Description, Color, Size, Pattern, and Type.
• An item can be composed of multiple items; for example, a dining room wallcovering set (item
20) may consist of wallpaper (item 22) and borders (item 23).
• Wally employs 56 employees.
• He would like to track the following information about employees: Name, Address (Street, City,
State, Zip Code), Telephone, Date of Hire, Title, Salary, Skill, and Age.
• Each employee works in one and only one branch.
• Each employee may have one or more dependents. We wish to record the name of the
dependent as well as the age and relationship.
• Employees can have one or more skills.
Problem 2:

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.

Create an ERD based upon the following set of rules:

• An ATTORNEY is retained by one or more CLIENTS for each CASE.


• Attributes of ATTORNEY are Attorney ID, Name, Address, City, State, Zip Code, Specialty
(may be more than one), and Bar (may be more than one).
• A CLIENT may have more than one ATTORNEY for each CASE.
• Attributes of CLIENT are Client ID, Name, Address, City, State, Zip Code, Telephone, and
Date of Birth.
• A CLIENT may have more than one CASE.
• Attributes of CASE are Case ID, Case Description, and Case Type.
• An ATTORNEY may have more than one CASE.
• Each CASE is assigned to one and only one COURT.
• Attributes of COURT are Court ID, Court Name, City, State, and Zip Code.
• Each COURT has one or more JUDGES assigned to it.
• Attributes of JUDGE are Judge ID, Name, and Years In Practice.
• Each JUDGE is assigned to exactly one court.

Part 3: Difficult Category

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:

• An instructor teaches one, none, or many sections of a course in a given semester.


• An instructor specifies preferred time slots.
• Scheduling data are kept for each semester, uniquely identified by semester and year.
• A room can be scheduled for one section or no section during one time slot in a given semester
of a given year. However, one room can participate in many schedules, one schedule, or no
schedules; one time slot can participate in many schedules, one schedule, or no schedules; one
section can participate in many schedules, one schedule, or no schedules.
• A room can have one type of media, several types of media, or no media.
• Instructors are trained to use one, none, or many types of media.
• A lab has one or more computer types. However, a classroom does not have any computers.
• A room cannot be both a classroom and a lab. There also are no other room types to be
incorporated into the system.

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.

Attributes of business consultant are the following:

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.

Additional Business Rules


In addition to the entities outlined previously, the following information will need to be
stored to tables and should be shown in the model. These may be entities, but they also reflect a
relationship between more than one entity:

• 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.

Documentation: Copy the problem


Part 1. Easy Category
ERD and RDM JPEG File for each problem
Part 2: Average Category
ERD and RDM JPEG File for each problem
Part 3: Difficult Category
ERD and RDM JPEG File for each problem

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

Save all folders in one compressed folder.


Folder name: ​Surname1_Surname2_dataman2Proj.zip

Each team should only ​make one submission ​on or before the deadline in the ​GOOGLE
CLASSROOM.

DEADLINE: July 30, 2018

Das könnte Ihnen auch gefallen