Professional Documents
Culture Documents
Lab2 FD Spring-2019-1 PDF
Lab2 FD Spring-2019-1 PDF
The college would like to set up a relational database to manage the allocation of staff to jobs
and keep a more efficient record of the number of hours worked for each school within the
college.
b. Assume that at the beginning, the database contain only one relation R(TechNo,
TechName, DeptID, Department, JobNo, Date, SchoolID, School, Hoursworked).
Normalize the database to 1NF, 2NF and 3NF (specify your responses step by
step, not only give the results).
c. Assume that at the beginning, the database contain only one relation R(TechNo,
TechName, DeptID, Department, JobNo, Date, SchoolID, School, Hoursworked).
Normalize the database to BCNF by using the BCNF decomposition algorithm.
345 Smith, Alan 2 Helpdesk 3440 18/9/07 346 Bus & Man 1.5
320 Young, Jill 3 Labs 3440 18/9/07 346 Bus & Man 4
Exercise 2. You are required to design a database for storing data of a clinic. For the first time
a patient come to the clinic, he/she is required to fill the following form. Note that the patient has
to give a reason for each visit to the clinic.
Emergency Contact:
In each visit, the patient may be consulted by a main doctor who after may require him/her to do some
tests/consultations and gives him/her a list of medicines to take. The information of the
tests/consultations and medicines is as follows:
No Date Time Code Name Price Discount Result Code Name of Indication
of test of test of Doctor
Doctor
No Code of Name of Unit Quantity Unit Amount Indication Code Name
medicine medicine Price of of
Doctor Doctor