Anda di halaman 1dari 2

Latihan

1. Buatlah database dengan nama db_hotel_nama_nobp


2. Buatlah tabel-tabel dibawah ini.

Nama tabel : pelanggan


Primary Key : no_ktp
Nama Field Data type Field Size
no_ktp Text 16
nama Text 20
nohp Text 14
deposit number

Nama tabel : kamar


Primary Key: no_kamar
Nama Field Data type Field Size
no_kamar Text 3
tipe_kamar Text 20
harga_kamar number

Nama tabel : transaksi


Primary Key : no_faktur
Nama Field Data type Field Size
no_faktur Text 5
lookup
no_ktp 16
wizard/Text
lookup
no_kamar
wizard/Text 3
tgl_masuk date
tgl_keluar date

3. Buatlah form entry untuk masing-masing tabel lengkap dengan button ADD NEW,
SAVE, DELETE, KELUAR
4. Buatlah query seperti dibawah ini

no_faktur no_ktp nama deposit no_kamar tipe_kamar harga_kamar tgl_masuk tgl_keluar lama_inap sub_total total_bayar

Keterangan query:
1. Lama inap = tanggal keluar – tanggal masuk
2. Sub total = lama inap * harga kamar
3. Total bayar = sub total – deposit

Anda mungkin juga menyukai