Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following medication table with sample data of a hospital that provides information on medicines to be taken by patients: MEDICATION table [

Consider the following medication table with sample data of a hospital that provides information on medicines to be taken by patients:
MEDICATION
\table[[PatNo,PatName,DocID,DocName,MedID,MedName,UWeight,Dosage,TWeight],[P0005,Isaac,D002,Jack,\table[[M011],[M002],[M003]],\table[[Lipitor],[Nexium],[Plavix]],\table[[4],[3],[5]],\table[[2],[3],[2]],\table[[8],[9],[9],[10]]],[P0012,Aries,D005,Gogo,\table[[M001],[M011],[M003]],\table[[Actos],[Lipitor],[Plavix]],\table[[7],[4],[5]],\table[[2],[3],[1]],\table[[14],[12],[5]]],[P0013,Zoe,D008,Wang,M011,Lipitor,4,4,16],[P0022,Athena,D015,Fisher,M012,Crestor,10,5,50],[P0025,Tracy,D002,Jack,\table[[M011],[M001],[M002]],\table[[Lipitor],[Actos],[Nexium]],\table[[4],[7],[3]],\table[[1],[2],[3]],\table[[4],[14],[9]]]]
Where
PatNo = unique patient number;
DocID = doctor ID;
MedID = medicine ID;
UWeight = weight of one unit of the medicine;
TWeight = total weight of the medicine tobe taken.
PatName = patient name;
DocName = doctor name;
MedName = medicine name;
Dosage = units of the medicine to be taken;
Assumptions:
Each patient has a name and a unique patient number.
Each doctor has a name and a unique doctor ID.
Each patient is assigned one doctor to look after him/her. All doctors have patients.
Each patient can be assigned to take several medicines but not all patients need to take medicine. There may be some medicines not assigned to be taken by any patient.
Each medicine has a name, a unit weight and a unique medicine ID.
(a) Normalise the MEDICATION relation to the third normal form (3NF). Show ALL your steps from UNF to 3NF by listing all the relations in UNF, 1NF,2NF and 3NF. Underline your answer's primary key attribute(s) for each relation. Explain your work in each step.
(b) Draw an entity relationship diagram to represent the normalised relations in 3NF based on the given assumptions. Ensure all entities are labelled and relationships are drawn with the correct symbols
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

6. Ask if the authorizer wants progress reports.

Answered: 1 week ago