Professional Documents
Culture Documents
Prawira Yuda Husada - 211810532
Prawira Yuda Husada - 211810532
NIM : 2211810532
Kelas : 2ST9
Tugas 7
1. Buatlah tabelnya.
1. Tabel
PatientNo FullName Bed Ward WardName DrugNo DrugName Description Dosage MethodofAdmin UnitsperDay StartDate FinishDate
No No
P10034 Robert 84 11 Orthopaedic 10223 Morphine Pain Killer 10mg/ Oral 50 24/03/04 24/04/05
MacDonald ml
10334 Tetracyclene Antibiotic 0.5mg/ IV 10 24/03/04 17/04/04
ml
10223 Morphine Pain Killer 10mg/ Oral 10 25/04/05 02/05/06
ml
PatientNo FullName Bed Ward WardName DrugNo DrugName Description Dosage MethodofAdmin UnitsperDay StartDate FinishDate
No No
P10034 Robert 84 11 Orthopaedic 10223 Morphine Pain Killer 10mg/ Oral 50 24/03/04 24/04/05
MacDonald ml
P10034 Robert 84 11 Orthopaedic 10223 Morphine Pain Killer 10mg/ Oral 10 25/04/05 02/05/06
ml
MacDonald
3. Functional Dependence
3) WardNo→WarName
4) WardName→WardNo
5) DrugNo→DrugName
6) DrugName→DrugNo
8) PatientNo, DrugNo, StartDate, FinishDate→FullName, BedNo, WardNo, WardName, Name, Description, Dosage, MethodofAdmin,
UnitsperDay
4. Primary Key
PatientNo, DrugNo
(Full Dependency)
3) WardNo→WarName
(Transitive Dependency)
4) WardName→WardNo
(Transitive Dependency)
5) DrugNo→DrugName
(Transitive Dependency)
6) DrugName→DrugNo
(Transitive Dependency)
(Full Dependency)
8) PatientNo, DrugNo, StartDate, FinishDate→FullName, BedNo, WardNo, WardName, Name, Description, Dosage, MethodofAdmin,
UnitsperDay
(Partial Dependency)
Drug Consumption
PatientNo DrugNo StartDate UnitsperDay FinishDate
P10034 10223 24/03/04 50 24/04/05
P10034 10334 24/03/04 10 17/04/04
P10034 10223 25/04/05 10 02/05/06
Drug
DrugNo Name Description Dosage MethodofAdmin
Patient
PatientNo FullName WardNo WardName BedNo
P10034 Robert MacDonald Ward 11 Orthopaedic 84
Drug Consumption
PatientNo DrugNo StartDate UnitsperDay FinishDate
P10034 10223 24/03/04 50 24/04/05
P10034 10334 24/03/04 10 17/04/04
P10034 10223 25/04/05 10 02/05/06
Drug
DrugNo Name Description Dosage MethodofAdmin
Patient
PatientNo FullName WardNumber BedNumber
P10034 Robert MacDonald Ward 11 84
Ward Name
WardNo WardName
Ward 11 Orthopaedic