Beruflich Dokumente
Kultur Dokumente
Problems for Home Assignments and Case studies in Database Management Systems
Last date for Submission: 27th March
Question
No Roll numbers of Students
XYZ hospital is a multi specialty hospital that includes a number of departments, rooms, doctors
, nurses, compounders, and other staff working in the hospital. Patients having different kinds of
ailments come to the hospital and get checkup done from the concerned doctors. If required the
y are admitted in the hospital and discharged after treatment. The aim of this case study is to desi
gn and develop a database for the hospital to maintain the records of various departments, rooms
, and doctors in the hospital. It also maintains records of the regular patients, patients admitted in
the hospital, the check up of patients done by the doctors, the patients that have been operated, a
nd patients discharged from the hospital. Description: In hospital, there are many departments li
ke Orthopedic, Pathology, Emergency, Dental, Gynecology, Anesthetics, I.C.U., Blood Bank, O
peration Theater, Laboratory, M.R.I., Neurology, Cardiology, Cancer Department, Corpse, etc.
There is an OPD where patients come and get a card (that is, entry card of the patient) for check
up from the concerned doctor. After making entry in the card, they go to the concerned doctor’s
room and the doctor checks up their ailments. According to the ailments, the doctor either prescr
ibes medicine or admits the patient in the concerned department. The patient may choose either
private or general room according to his/her need. But before getting admission in the hospital, t
he patient has to fulfill certain formalities of the hospital like room charges, etc. After the treatm
ent is completed, the doctor discharges the patient. Before discharging from the hospital, the pati
ent again has to complete certain formalities of the hospital like balance charges, test char
ges, operation charges (if any), blood charges, doctors’ charges, etc. Next we talk about the doc
tors of the hospital. There are two types of the doctors in the hospital, namely, regular doctors an
d call on doctors. Regular doctors are those doctors who
come to the hospital daily. Calls on doctors are those doctors who are called by the hospital if the
concerned doctor is not available.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Ford distribution centers provide automotive parts to authorized dealers and the dealers distribute the
parts to Customers throughout North America. Ford is faced with pressure to provide excellent
Customer Service at minimum Cost. Maintaining a well organized database of information, will
contribute to achieving this goal. Ford keeps the following information about each of its distribution
centers: identification number, location (X longitude coordinate and Y latitude coordinate), address
(city, state, zip code) and name of the Contact person. The following information is kept about each
dealer: identification number, dealer’s location (X longitude Coordinate and Y latitude Coordinate),
address (name of the city, State, zip Code), name of the Contact person and the identification number
of the primary distribution centers serve this dealer.A distribution center sends a shipment to its
dealers every week. The distribution centers keep the following information about each shipment the
date, an identification number of the product shipped, an identification number of the dealer that
receives the shipment.The following information is kept about each product: a product identification
number name, price, weight, value. Ford keeps the following information about the flow and cost
data for all distribution centers to dealer channels: distribution center identification number, dealer
identification number, product identification number, the number of miles between each distribution
center and its dealers using the road network, the quantity of products being shipped and the dollar
value of the shipment.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Write atlesat 50 relevant SQL and relational algebra queries covering all concepts.
Housing officekeeps the following information about the Current residents: the SSN of the family
head, name, address, telephone number, marital status, the name of the major college and department
in which the family head is enrolled in. Housing office keeps the following information about the
students that have applied for in campus housing, but have not been assigned to an apartment yet:
SSN of the applicant, name, address, telephone number, marital status, the name of the major college
and department in which the family head is enrolled in, the preference about the apartment category.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
8. Emergency Room
In our Emergency Room (ER), we have three distinct types of workers: receptionists, nurses, and
doctors. Any of the workers can in fact be a patient. Each person in the proposed system, be it a
patient or a worker has a last, a first, possibly a middle name, and one or more addresses. An
address consists of a country, province, city, street and street number. Each person can have none
or more email addresses, none or more telephone numbers.
The workers work in ER in shifts. A shift consists of start and end time. The shifts do not
overlap, but they are consecutive, i.e. there is a shift on at any given time and day. We are
assuming that the model we are creating (and eventually the database we will design) covers
some extended period of time. Each worker will thus be assigned to many shifts in that period.
Exactly two receptionists are assigned to each shift, a group of two or more nurses is assigned to
each shift, a group of two or more doctors is assigned to each shift, one of the doctors assigned to
a shift is the shift’s triage doctor.
When a patient comes to ER, it happens during a particular shift. The patient is admitted by a
particular receptionist, is seen by the triage doctor of the shift. The patient may be send home,
prescribed some medication by the triage doctor and send home, or is staying in ER – in which
case the patient is assigned a bed and case doctors (one of the doctors on each shift best qualified
for the particular problem of the patient). Each bed is supervised by a single nurse during a shift,
but a nurse may supervise many beds, or none at all. The case doctor(s) may prescribe a
medication that is administered to the patient by a single nurse in each shift for the duration of
the patient taking the medicine. Each medication has a name, and for each patient there may be a
different dosage and different number of times a day to take it.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Covert your ER model to relational model with ER to Relational mapping rules.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Major airlines companies that provide passenger services in Taiwan are: UniAir, TransAsia Airways,
Far Eastern Transport, Great China Airlines etc. Taiwan’s Federal Aviation Administration (TFAA)
keeps a database with lots of information on all airlines. This information is made accessible to all
airlines in Taiwan with the intention of helping the Companies assess their Competitive position in
the domestic market. The information kept consists of: Each airpline has an identification number,
name of the contact person and telephone number.For each aircraft identification number, capacity
and model is recorded. Each employee has an employee identification number, name, address,
birthday, sex, position with the company and qualification. Each route has a route identification
number, origin, destination, classification (into domestic or international route), distance of the route
and price charged per passenger. Each airline keeps information about their buy/sell transactions (for
example, selling an airplane ticket is a sell transaction, paying for maintenance is a buy transaction).
Each transaction has a transaction identification number, date, description and amount of money
paid/received.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Cab service company employees are categorized into sections. Each section has a section
manager. Section No and a fixed basic salary rate is assigned to a section. They keep data on
Emp-no, NIC No, name, address, sex, DOB, contact no. of employees. If the employee is a
driver his driving licen no and capable vehicle classes should be added . Each employee is
assigned only to one section. For a travel, driver is assigned to a vehicle. They keep following
data about vehicles; Reg No, Insurance no, Model, vehicle category, current mileage. In this case
customer is the person who is making a reservation. They keep name, NIC_no, address, contact
no. regarding the customer.
Once a customer reserved a cab, he cannot make any other reservations until the end of the
reserved duration. Customer can reserve one or more vehicles from a reservation. They are
keeping index no, payment method, amount, No. of vehicles, distance, start date and time, end
date and time regarding a reservation. They are supplying various kinds of supplies to maintain
vehicles. A supplier can supply more than one supplying category. Company always keeps data
on additional suppliers. Every supplier has a Reg No, Name, address, contact no. A employee is
responsible for one or more supplying categories. They keep data like cat_no, cat_description,
cost per 1, quantity, net cost regarding every supplying category.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
ABC University is a large institution with several campuses. Each campus has a different name,
address, distance to the city center and the only bus running to the campus. Each campus has one
club. The name of the club, the building in which the club is located, the phone number of the
club and the multiple sports which club offers, should all be recorded.
The University consists of a number of faculties, such as the Art Faculty, the Science Faculty,
and so on. Each faculty has a name, dean and building. A faculty may be divided into a number
of schools, for example, the Science Faculty has a School of Physics and a School of Chemistry.
Each school belongs to one faculty only and is located on just one campus, but one campus
maybe the location of many schools.
Every school has name and an building assigned to. Each school offers different programmes
and each programme can be offered by only one school. Each programme has a unique code,
title, level and duration. Each programme comprises several courses, different programmes have
different courses. Each course has a unique code and course title. Some courses may have one or
more prerequisite courses and one course can be the prerequisite course of some other courses.
Each of the students is enrolled in a single programme of study which involves a fixed core of
courses specific to that programme as well as a number of electives taken from other
programmes. Students work on courses and are awarded a grade in any course if he/she passes
the course. Otherwise the student has to re-take the failed course. The system needs to record the
year and term in which the course was taken and the grade awarded to the student. Every student
has a unique ID. The system also keeps the student name, birthday and the year he/she enrolled
in the course.
The school employs lecturers to teach the students. A lecturer is allowed to work for one school
only. Each lecturer is assigned an ID which is unique across the whole university. The system
keeps the lecturer’s name, title and the office room. A supervisor maybe in charge of several
lecturers, but a lecturer, however reports to only one supervisor. A lecturer can teach many
different courses. A course may also have been taught by many different lecturers.
The university is operated by committees. Each faculty has to have a number of committees with
the same titles across the university, such as the Faculty Executive, the Post Graduate Studies
Committee, the Health and Sanity Committee, and so on. The committees meet regularly, such as
weekly or monthly. The frequency is determined by the faculty involved. A committee’s
members are all lecturers. A lecturer may be a member of several committees.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
The railway reservation system facilitates the passengers to enquire about the trains available on
the basis of source and destination, booking and cancellation of tickets, enquire about the status
of the booked ticket, etc.
The aim of case study is to design and develop a database maintaining the records of different tr
ains, train status, and passengers. The record of train includes its number, name, source, destinat
ion, and days on which it is available, whereas record of train status includes dates for which tic
kets can be booked, total number of seats available, and number of seats already booked. The da
tabase has been developed and tested on the Oracle. Description:
Passengers can book their tickets for the train in which seats are available. For this, passenger ha
s to provide the desired train number and the date for which ticket is to be booked. Before booki
ng a ticket for a passenger, the validity of train number and booking date is checked. Once the tr
ain number and booking date are validated, it is checked whether the seat is available. If yes, the
ticket is booked with confirm status and corresponding ticket ID is generated which is stored al
ong with other details of the passenger. After all the available tickets are booked, certain number
s of tickets are booked with waiting status. If waiting lot is also finished, then tickets are not boo
ked and a message of non‐availability of seats is displayed. The ticket once booked can be cancel
led at any time. For this, the passenger has to provide the ticket ID (the unique key). The ticket I
D is searched and the corresponding record is deleted. With this, the first ticket with waiting stat
us also gets confirmed. List of Assumptions:
Since the reservation system is very large in reality, it is not feasible to develop the case study to
that extent and prepare documentation at that level. Therefore, a small sample case study has be
en created to demonstrate the working of the reservation system. To implement this sample case
study, some assumptions have been made, which are as follows:
1The number of trains has been restricted to 5. The booking is open only for next seven days fro
m the current date. Only two categories of tickets can be booked, namely, AC and General. The
total number of tickets that can be booked in each category (AC and General) is 10. The total nu
mber of tickets that can be given the status of waiting is 2. The in‐between stoppage stations and
their bookings are not considered.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.
Rohit’s family owns and operates a 640-acre farm for several generations. Since the farm business is
growing, Rohit is thinking to build a database that would make easier the management of the
activities in the farm. He is considering the following requirements for the database: For each
livestock classification group (for example, cow, horse etc.), Rohit keeps track of the following:
identification number, classification, total number of livestock per classification group (for example,
number of cows, number of horses etc.). For each crop the following information is recorded Crop
identification number and classification. Rohit has recorded the yield of each crop classification
group during the last ten years. The records consist of the year, yield, sales, price of the crop and the
amount of money earned. Rohit has recorded the yield of each livestock classification group during
the last ten years. The records consist of the following historical data: the year, (historical) selling
price per head, number of livestock in the end of the year, number of livestock sold during one-year
period, and the total amount of money earned.
Draw the ER model for the above scenario. Write all the specifications you have considered like
attribute types, relationships and constraints considered. Indicate the key attributes.
Apply 1st to 3rd normalization steps on the obtained relations . Write the normal form rules clearly,
identify the functional dependencies and show the step by step process of normalization.