Assignment2_Group4
Assignment2_Group4
1. Given the following business scenario, create a Crow’s Foot ERD using a specialization
hierarchy if appropriate. Two-Bit Drilling Company keeps information on employees and
their insurance dependents. Each employee has an employee number, name, date of hire, and
title. If an employee is an inspector, then the date of certification and the certification renewal
date should also be recorded in the system. For all employees, the Social Security number
and dependent names should be kept. All dependents must be associated with one and only
one employee. Some employees will not have dependents, while others will have many
dependents.
2. Given the following business scenario, create a Crow’s Foot ERD using a specialization
hierarchy if appropriate. Tiny Hospital keeps information on patients and hospital rooms. The
system assigns each patient a patient ID number. In addition, the patient’s name and date of
birth are recorded. Some patients are resident patients who spend at least one night in the
hospital, and others are outpatients who are treated and released. Resident patients are
assigned to a room. Each room is identified by a room number. The system also stores the
room type (private or semi private) and room fee. Over time, each room will have many
patients. Each resident patient will stay in only one room. Every room must have had a
patient, and every resident patient must have a room.
3. Given the following business scenario, create a Crow’s Foot ERD using a specialization
hierarchy if appropriate. Granite Sales Company keeps information on employees and the
departments in which they work. For each department, the department name, internal mailbox
number, and office phone extension are kept. A department can have many assigned
employees, and each employee is assigned to only one department. Employees can be
salaried, hourly, or work on contract. All employees are assigned an employee number, which
is kept along with the employee’s name and address. For hourly employees, hourly wages and
target weekly work hours are stored; for example, the company may target 40 hours/week for
some employees, 32 for others, and 20 for others. Some salaried employees are salespeople
who can earn a commission in addition to their base salary. For all salaried employees, the
yearly salary amount is recorded in the system. For salespeople, their commission percentage
on sales and commission percentage on profit are stored in the system. For example, John is a
salesperson with a base salary of $50,000 per year plus a 2 percent commission on the sales
price for all sales he makes, plus another 5 percent of the profit on each of those sales. For
contract employees, the beginning date and end date of their contracts are stored along with
the billing rate for their hours.
4. In Chapter 4, you saw the creation of the Tiny College database design, which reflected
such business rules as “a professor may advise many students” and “a professor may chair
one department.” Modify the design shown in Figure 4.35 to include these business rules:
• An employee could be staff, a professor, or an administrator.
• A professor may also be an administrator.
• Staff employees have a work-level classification, such as Level I or Level II.
• Only professors can chair a department. A department is chaired by only one professor.
• Only professors can serve as the dean of a college. Each of the university’s colleges is
served by one dean.
• A professor can teach many classes.
• Administrators have a position title.
Given that information, create the complete ERD that contains all primary keys, foreign keys,
and main attributes.
5. Tiny College wants to keep track of the history of all its administrative appointments,
including dates of appointment and dates of termination. (Hint: Time-variant data is at work.)
The Tiny College chancellor may want to know how many deans worked in the College of
Business between January 1, 1960, and January 1, 2022, or who the dean of the College of
Education was in 1990. Given that information, create the complete ERD that contains all
primary keys, foreign keys, and main attributes.
6. Some Tiny College staff employees are information technology (IT) personnel. Some IT
personnel provide technology support for academic programs, some provide technology
infrastructure support, and some provide support for both. IT personnel are not professors;
they are required to take periodic training to retain their technical expertise. Tiny College
tracks all IT personnel training by date, type, and results (completed versus not completed).
Given that information, create the complete ERD that contains all primary keys, foreign keys,
and main attributes.
Minimal Tiny College IT Staffing Solution:
Expanded Tiny College IT Staffing Solution:
7. The FlyRight Aircraft Maintenance (FRAM) division of the FlyRight Company (FRC)
performs all maintenance for FRC’s aircraft. Produce a data model segment that reflects the
following business rules:
• All mechanics are FRC employees. Not all employees are mechanics.
• Some mechanics are specialized in engine (EN) maintenance. Others are specialized in
airframe (AF) maintenance or avionics (AV) maintenance. (Avionics are the electronic
components of an aircraft that are used in communication and navigation.) All mechanics
take periodic refresher courses to stay current in their areas of expertise. FRC tracks all
courses taken by each mechanic—date, course type, certification (Y/N), and performance.
• FRC keeps an employment history of all mechanics. The history includes the date hired,
date promoted, and date terminated.
Given those requirements, create the Crow’s Foot ERD segment.
8. “Martial Arts R Us” (MARU) needs a database. MARU is a martial arts school with
hundreds of students. The database must keep track of all the classes that are offered, who is
assigned to teach each class, and which students attend each class. Also, it is important to
track the progress of each student as they advance. Create a complete Crow’s Foot ERD for
these requirements:
• Students are given a student number when they join the school. The number is stored along
with their name, date of birth, and the date they joined the school.
• All instructors are also students, but clearly not all students are instructors. In addition to the
normal student information, for all instructors, the date that they start working as an instructor
must be recorded along with their instructor status (compensated or volunteer).
• An instructor may be assigned to teach any number of classes, but each class has one and
only one assigned instructor. Some instructors, especially volunteer instructors, may not be
assigned to any class.
• A class is offered for a specific level at a specific time, day of the week, and location. For
example, one class taught on Mondays at 5:00 p.m. in Room 1 is an intermediate-level class.
Another class taught on Mondays at 6:00 p.m. in Room 1 is a beginner-level class. A third
class taught on Tuesdays at 5:00 p.m. in Room 2 is an advanced-level class.
• Students may attend any class of the appropriate level during each week, so there is no
expectation that any particular student will attend any particular class session. Therefore, the
attendance of students at each individual class meeting must be tracked.
• A student will attend many different class meetings, and each class meeting is normally
attended by many students. Some class meetings may not be attended by any students. New
students may not have attended any class meetings yet.
• At any given meeting of a class, instructors other than the assigned instructor may show up
to help. Therefore, a given class meeting may have a head instructor and many assistant
instructors, but it will always have at least one instructor who is assigned to that class. For
each class meeting, the date of the class and the instructors’ roles (head instructor or assistant
instructor) need to be recorded. For example, Mr. Jones is assigned to teach the Monday, 5:00
p.m., intermediate class in Room 1. During a particular meeting of that class, Mr. Jones was
the head instructor and Ms. Chen served as an assistant instructor.
• Each student holds a rank in the martial arts. The rank name, belt color, and rank
requirements are stored. Most ranks have numerous rank requirements, but each requirement
is associated with only one particular rank. All ranks except white belt have at least one
requirement.
• A given rank may be held by many students. While it is customary to think of a student as
having a single rank, it is necessary to track each student’s progress through the ranks.
Therefore, every rank that a student attains is kept in the system. New students joining the
school are automatically given the rank of white belt. The date that a student is awarded each
rank should be kept in the system. All ranks have at least one student who has achieved that
rank at some time.
11.
Use GCS