Buatlah
empat buah tabel dengan kriteria sebagai berikut:
Nama Tabel:
TDOKTER
|
|||
Nama Field
|
Field
Size
|
Field
Type
|
Keterangan
|
kd_dokter
|
5
|
Short
text
|
Primary
Key
|
nama_dokter
|
30
|
Short
text
|
Not
null
|
kd_poli
|
5
|
Short
text
|
Foreign
Key TPOLI
|
Nama Tabel:
TPOLI
|
|||
Nama
Field
|
Field
Size
|
Field
Type
|
Keterangan
|
kd_poli
|
5
|
Short text
|
Primary Key
|
nama_poli
|
30
|
Short text
|
Not null
|
Nama
Tabel: TKAMAR
|
|||
Nama
Field
|
Field
Size
|
Field
Type
|
Keterangan
|
kd_kamar
|
5
|
Short text
|
Primary Key
|
nama_kamar
|
30
|
Short text
|
Not null
|
tipe_kamar
|
3
|
Short text
|
Check In “VIP” atau “REG”
|
tarif
|
10
|
Currency
|
Not null
|
Nama
Tabel: TPASIEN
|
|||
Nama
Field
|
Field
Size
|
Field
Type
|
Keterangan
|
kd_pasien
|
5
|
Short text
|
Primary Key
|
nama_pasien
|
30
|
Short text
|
Not null
|
lama_inap
|
Integer
|
Number
|
Not null
|
kd_dokter
|
5
|
Short text
|
Foreign Key
TDOKTER
|
Kd_kamar
|
5
|
Short text
|
Foreign Key
TKAMAR
|
Masukan
data berikut ini:
kd_dokter
|
nama_dokter
|
kd_poli
|
DOK01
|
ASTRI UTAMI
|
POL01
|
DOK02
|
DIAN WAHYUNI
|
POL02
|
DOK03
|
JAJA SUHERMAN
|
POL03
|
kd_poli
|
nama_poli
|
POL01
|
POLI DALAM
|
POL02
|
POLI GIGI
|
POL03
|
POLI UMUM
|
kd_kamar
|
nama_kamar
|
tipe_kamar
|
tarif
|
KMR01
|
ANGGREK
|
REG
|
500.000
|
KMR02
|
MELATI
|
REG
|
500.000
|
KMR03
|
MAWAR
|
REG
|
500.000
|
KMR04
|
TULIP
|
VIP
|
1.000.000
|
KMR05
|
RAFLESIA
|
VIP
|
1.000.000
|
kd_pasien
|
nama_pasien
|
lama_inap
|
kd_dokter
|
kd_kamar
|
PAS01
|
ABDUL
|
3
|
DOK01
|
KMR01
|
PAS02
|
BENNY
|
2
|
DOK02
|
KMR02
|
PAS03
|
CINTA
|
1
|
DOK01
|
KMR03
|
PAS04
|
DINA
|
3
|
DOK02
|
KMR04
|
PAS05
|
ERNI
|
1
|
DOK03
|
KMR05
|
This comment has been removed by a blog administrator.
ReplyDeletePost a Comment