0% found this document useful (0 votes)
51 views

Dokter

The document describes tables created in a MySQL database called "dokter" to store information about doctors. The tables include "dokter" for doctor details, "jam_praktek" for doctor schedules, and "spesialis" for medical specializations. Sample data is provided showing records inserted into each table.

Uploaded by

Kepet GTPS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Dokter

The document describes tables created in a MySQL database called "dokter" to store information about doctors. The tables include "dokter" for doctor details, "jam_praktek" for doctor schedules, and "spesialis" for medical specializations. Sample data is provided showing records inserted into each table.

Uploaded by

Kepet GTPS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

buatlah database yang diberi nama dokter.

mysql> describe dokter;


+--------------+-------------+------+-----+------------+-------+
| Field | Type | Null | Key | Default | Extra
+--------------+-------------+------+-----+------------+-------+
| kd_dokter | char(5) | NO | PRI | | |
| nama_dokter | varchar(35) | YES | | NULL | |
| tgl_lahir | date | YES | | 0000-00-00 | |
| kd_spesialis | varchar(5) | YES | | NULL | |
| telp | int(7) | YES | | NULL | |
| alamat | varchar(50) | YES | | NULL | |
+--------------+-------------+------+-----+------------+-------+
6 rows in set (0.02 sec)

mysql> describe jam_praktek;


+-------------+-------------+------+-----+----------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+----------+-------+
| kd_dokter | char(5) | YES | | NULL | |
| hari | varchar(15) | YES | | NULL | |
| jam_mulai | time | YES | | 00:00:00 | |
| jam_selesai | time | YES | | 00:00:00 | |
+-------------+-------------+------+-----+----------+-------+
4 rows in set (0.05 sec)

mysql> describe spesialis;


+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| kd_spesialis | varchar(3) | NO | PRI | NULL | |
| jns_spesialis | varchar(50) | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
2 rows in set (0.03 sec)

mysql> select * from dokter;


+-----------+----------------------+------------+--------------+-----------
+-------------------------+
| kd_dokter | nama_dokter | tgl_lahir | kd_spesialis | telp | alamat
|
+-----------+----------------------+------------+--------------+-----------
+-------------------------+
| D01 | Dr.Arief Nur S | 1977-12-03 | MAT | 819234765 | Jl.
Tanjung Raya No.13 |
| D02 | Dr.Agung Sutopo | 0000-00-00 | DLM | 815264915 | Jl.
Rawasari No.24 |
| D03 | Dr.Bambang Hermawan | 0000-00-00 | BDH | 812234017 | Jl.
Pulau We No.17 |
| D04 | Dr.Bunafit Nugroho | 0000-00-00 | JTG | 812765834 | Jl.
Ahmad Yani No.218 |
| D05 | Dr.Sulis Setowati | 0000-00-00 | KDG | 815834900 | Jl.
Bukit Barisan No.34 |
| D06 | Dr.Iwan Subagio | 0000-00-00 | SRF | 811456823 | Jl. M
Yamin No.151 |
| D07 | Dr.Sugeng Fitriyadi | 0000-00-00 | MAT | 817263777 | Jl.
Sumatera No.156 |
| D08 | Dr.Iis Suwindri | 0000-00-00 | ANK | 815832934 | Jl.
Adi Sucipto No.234 |
| D09 | Dr.Mawardi Budiono | 0000-00-00 | UMM | 817099123 | Jl.
Ahmad Yani No.112 |
| D10 | Dr.Fatoni | 0000-00-00 | BDH | 81199552 | Jl.
Ahmad Yani No.100 |
| D11 | Dr.Didik Kusdiantoro | 0000-00-00 | UMM | 812333444 | Jl.
Ahmad Yani No.103 |
| D12 | Dr.Hana Angraeni | 0000-00-00 | BDH | 812561738 | Jl.
Sumatera No.99 |
| D13 | Dr.Winarni Kinasih | 0000-00-00 | ANK | 81256175 | Jl.
Sumatera No.145 |
| D14 | Dr.Indah Indriyana | 0000-00-00 | UMM | 81256900 | Jl. M
Yamin No.225 |
| D15 | Dr.Septi Suhesiti | 0000-00-00 | KDG | 81387654 | Jl.
Bali Agung No.117 |
| D16 | Dr.Muhammad Jafar | 0000-00-00 | BDH | 81190872 | Jl.
Adi Sucipto No.213 |
+-----------+----------------------+------------+--------------+-----------
+-------------------------+
16 rows in set (0.05 sec)

mysql> select * from jam_praktek;


+-----------+--------+-----------+-------------+
| kd_dokter | hari | jam_mulai | jam_selesai |
+-----------+--------+-----------+-------------+
| D01 | Senin | 08:15:00 | 12:15:00 |
| D09 | Senin | 12:15:00 | 16:30:00 |
| D11 | Senin | 17:30:00 | 20:00:00 |
| D03 | Selasa | 08:15:00 | 16:00:00 |
| D08 | Selasa | 16:00:00 | 21:00:00 |
| D04 | Selasa | 08:15:00 | 20:00:00 |
| D05 | Selasa | 08:15:00 | 14:00:00 |
| D15 | Selasa | 14:00:00 | 20:00:00 |
| D13 | Rabu | 08:15:00 | 14:00:00 |
| D12 | Rabu | 08:15:00 | 14:00:00 |
| D16 | Rabu | 14:00:00 | 21:00:00 |
| D14 | Rabu | 08:15:00 | 14:00:00 |
| D06 | Kamis | 08:15:00 | 14:00:00 |
| D07 | Jumat | 08:15:00 | 11:30:00 |
| D10 | Sabtu | 08:15:00 | 14:00:00 |
| D02 | Minggu | 09:00:00 | 14:00:00 |
+-----------+--------+-----------+-------------+
16 rows in set (0.02 sec)

mysql> select * from spesialis;


+--------------+---------------------------------------+
| kd_spesialis | jns_spesialis |
+--------------+---------------------------------------+
| ANK | Dokter Anak |
| BDH | Dokter Bedah |
| DLM | Dokter Penyakit Dalam |
| GIG | Dokter Gigi |
| JTG | Dokter Jantung |
| KDG | Dokter Kandungan |
| KLT | Dokter Kulit |
| MAT | Dokter Mata |
| SRF | Dokter Syaraf |
| THT | Dokter Telinga Hidung dan Tenggorokan |
| UMM | Dokter Umum |
+--------------+---------------------------------------+
11 rows in set (0.28 sec)

You might also like