You are on page 1of 3

Praktikum Basis Data (KOM 205) – Praktikum 5

LEMBAR KERJA PRAKTIKUM (45 menit)

Nama: Adila Hasanah


Tanggal Praktikum: 9 Maret 2021
NRP : G24190059
Waktu Praktikum: 15.30 – 17.30
Nilai :
Nama Asisten : Sultan Fariz dan Riyad
Firdaus

Soal
1. Lakukan Normalisasi form berikut ini:

2. The following is an unnormalized PATIENT record:


(PIDNO, PNAME, FAMDOCNO, DOCNAME, DOCADDR, *(APPTMT-DATE,
APPTMT-TIME, CONSULTANT-NAME,CONSULTANT-PHONE, HOSPITAL,
HOSPITAL-ADDR)) where * represents repeating groups of information. The business rules
are:
 On any given day, a consultant attends at just one hospital
 On any given day, a patient will have only one appointment (APPTMT) with a given
consultant
 Patient id numbers (PIDNO) and consultant names are unqiue
 Family doctor numbers (FAMDOCNO) and hospital names are unique
 Family doctor names (DOCNAME) and patient names (PNAME) are not unique
 Consultants have just one phone number, used as home base.

Reduce the above relation into normalized forms.

1
Praktikum Basis Data (KOM 205) – Praktikum 5
Jawab :
1.

1 NF
Patient Full Name Bed Ward Ward Name Drug Number Name Description Dosage Method of Units per Start Date Finish date
Number Number Number Admin day
P10034 Roberth MacDonald 84 Ward 11 Orthopaedic 10223 Morphine Pain Killer 10mg/ml Oral 50 24/03/04 24/04/05
P10034 Roberth MacDonald 84 Ward 11 Orthopaedic 10334 Tetracyclone Antibiotic 0.5mg/ml IV 10 24/03/04 17/04/04
P10034 Roberth MacDonald 84 Ward 11 Orthopaedic 10223 Morphine Pain Killer 10mg/ml Oral 10 25/04/05 02/05/06

2 NF
Patient Full Name Bed Ward Ward Name
Number Number Number
P10034 Roberth 84 Ward 11 Orthopaedic
MacDonald
P10034 Roberth 84 Ward 11 Orthopaedic
MacDonald
P10034 Roberth 84 Ward 11 Orthopaedic
MacDonald

Drug Name Description Dosage Method of


Number Admin
10223 Morphine Pain Killer 10mg/ml Oral
10334 Tetracyclone Antibiotic 0.5mg/ml IV
10223 Morphine Pain Killer 10mg/ml Oral

Patient Drug Units Start Finish


Number Number per day Date date
P10034 10223 50 24/03/04 24/04/05
P10034 10334 10 24/03/04 17/04/04
P10034 10223 10 25/04/05 02/05/06

3 NF
Patient Number Full Name Bed Ward
Number Number
P10034 Roberth MacDonald 84 Ward 11

Ward Number Ward Name


Ward 11 Orthopaedic

Drug Name Description Dosage Method of


Number Admin
10223 Morphine Pain Killer 10mg/ml Oral
10334 Tetracyclone Antibiotic 0.5mg/ml IV

Patient Drug Units Start Finish


Number Number per day Date date
P10034 10223 50 24/03/04 24/04/05
P10034 10334 10 24/03/04 17/04/04
P10034 10223 10 25/04/05 02/05/06

2
Praktikum Basis Data (KOM 205) – Praktikum 5

 .On any given day, a consultant attends at just one hospital


 On any given day, a patient will have only one appointment (APPTMT) with a given
consultant
 Patient id numbers (PIDNO) and consultant names are unqiue
 Family doctor numbers (FAMDOCNO) and hospital names are unique
 Family doctor names (DOCNAME) and patient names (PNAME) are not unique
 Consultants have just one phone number, used as home base.
2.
1 NF
PIDNO PNAME FAMDOCNO DOCNAME DOCADDR CONS_ CONS_ HOSPITAL HOSPITAL-ADDR APPTMT APPTMT
NAME PHONE -DATE -TIME

2 NF
PIDNO PNAME FAMDOCNO DOCNAME DOCADDR

CONS_NAME CONS_ PHONE HOSPITAL HOSPITAL-ADDR

PIDNO CONS_NAME APPTMT-DATE APPTMT-TIME

3 NF
PIDNO PNAME

PIDNO FAMDOCNO DOCNAME DOCADDR

PIDNO CONS_NAME APPTMT-DATE APPTMT-TIME

CONS_NAME CONS_ PHONE HOSPITAL

HOSPITAL HOSPITAL-ADDR

You might also like