Click here to Skip to main content
15,897,166 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Q1:-Perform normalisation on the following data and design it in mysql?
PatientName, PatientNumber, PatientCondition, DoctorRegistration, PatientSignin, PatientSignout, DoctorRDO, Hospital Name, Hospital Address, Outpatients, NumStaff, NumBeds, DoctorName, AssignedDoctor

i performed this
please correct if i am wrong


1st Normalisation<</b>/big>
Hospital Table




Hospital_Name
Hospital_Address
NumStaff
NumBeds
DoctorRDO
Outpatients
Doctor_Registration
Doctor_Name

Patient Table



DoctorRDO
Patient_Number
Patient_Name
Patient_Condition
PatientSignin
PatientSignout
Assigned_Doctor



2nd Normalisation
Hospital_Details Table




Hospital_Name
Hospital_Address
NumStaff
NumBeds
Outpatients

Hospital_Address is primary key

Patient Table



DoctorRDO
Patient_Number
Patient_Name
Patient_Condition
PatientSignin
PatientSignout
Assigned_Doctor

Here, Patient_Number is primary key and DoctorRDO is foreign key

Doctor_Details Table



DoctorRegistration
DoctorRDO
DoctorName

Here, Patient_ Number is foreign key and DoctorRDO is primary key


3rd Normalisation

Hospital_Details Table




Hospital_Name
Hospital_Address
NumStaff
NumBeds
Outpatients

Patient Table




DoctorRDO
Patient_Number
Patient_Name
Patient_Condition
PatientSignin
PatientSignout

Here, Patient_Number is primary key and DoctorRDO is foreign key


Doctor_Details Table



DoctorRegistration
DoctorRDO
DoctorName


Assigned_Doctor_Details Table

DoctorRDO


Patient_Number




Thanks in advance
regards
Posted
Comments
Mehdi Gholam 17-Nov-11 0:01am    
Normalization is dependent on your requirements for the application, it is very hard to judge with out it.
shivani 2013 17-Nov-11 0:04am    
I have only this data........

1 solution

If you want to associate the patient with multiple hospital, then it needs to be taken care.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900