Professional Documents
Culture Documents
Asignment 1
Asignment 1
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
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. Note that each test is done by a doctor
and different tests could be done by different doctors. 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