Sie sind auf Seite 1von 4

mysql> show tables;

+---------------------+
| Tables_in_midtest4c |
+---------------------+
| cabang
|
| karyawan
|
| kode
|
| nasabah
|
| rekening
|
| transaksi
|
+---------------------+
6 rows in set (0.00 sec)
mysql> describe cabang;
+-------------+-------------+------+-----+---------+-------+
| Field
| Type
| Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| KODE_CABANG | varchar(5) | NO | PRI | NULL
|
|
| NAMA_CABANG | varchar(20) | YES |
| NULL
|
|
| KOTA
| varchar(30) | YES |
| NULL
|
|
+-------------+-------------+------+-----+---------+-------+
3 rows in set (0.02 sec)
mysql> describe karyawan;
+-------------+-------------+------+-----+------------+-------+
| Field
| Type
| Null | Key | Default
| Extra |
+-------------+-------------+------+-----+------------+-------+
| ID_KARYAWAN | varchar(5) | NO | PRI | NULL
|
|
| NAMA
| varchar(20) | YES |
| NULL
|
|
| TGL_LAHIR | date
| YES |
| 0000-00-00 |
|
| ALAMAT
| varchar(30) | YES |
| NULL
|
|
| TELP
| varchar(10) | YES |
| NULL
|
|
+-------------+-------------+------+-----+------------+-------+
5 rows in set (0.01 sec)
mysql> describe kode;
+-----------+-------------+------+-----+---------+-------+
| Field
| Type
| Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
| KODE
| varchar(5) | NO | PRI | NULL
|
|
| NAMA_KODE | varchar(25) | YES |
| NULL
|
|
+-----------+-------------+------+-----+---------+-------+
2 rows in set (0.03 sec)
mysql> describe nasabah;
+------------+-------------+------+-----+------------+-------+
| Field
| Type
| Null | Key | Default
| Extra |
+------------+-------------+------+-----+------------+-------+
| ID_NASABAH | varchar(10) | NO | PRI | NULL
|
|
| NAMA
| varchar(30) | YES |
| NULL
|
|
| TGL_LAHIR | date
| YES |
| 0000-00-00 |
|
| JALAN
| varchar(25) | YES |
| NULL
|
|
| KOTA
| varchar(30) | YES |
| NULL
|
|
+------------+-------------+------+-----+------------+-------+
5 rows in set (0.02 sec)
mysql> describe rekening;
+-------------+-------------+------+-----+---------+-------+
| Field
| Type
| Null | Key | Default | Extra |

+-------------+-------------+------+-----+---------+-------+
| NO_REKENING | varchar(10) | NO | PRI | NULL
|
|
| KODE_CABANG | varchar(5) | YES |
| NULL
|
|
| ID_NASABAH | varchar(10) | YES |
| NULL
|
|
| SALDO
| int(20)
| YES |
| NULL
|
|
+-------------+-------------+------+-----+---------+-------+
4 rows in set (0.01 sec)
mysql> describe transaksi;
+-------------+-------------+------+-----+------------+-------+
| Field
| Type
| Null | Key | Default
| Extra |
+-------------+-------------+------+-----+------------+-------+
| NO_KREDIT | varchar(5) | NO | PRI | NULL
|
|
| NO_REKENING | varchar(10) | YES |
| NULL
|
|
| ID_KARYAWAN | varchar(5) | YES |
| NULL
|
|
| KODE
| varchar(5) | YES |
| NULL
|
|
| TANGGAL
| date
| YES |
| 0000-00-00 |
|
| KREDIT
| int(20)
| YES |
| NULL
|
|
| DEBET
| int(20)
| YES |
| NULL
|
|
+-------------+-------------+------+-----+------------+-------+
7 rows in set (0.01 sec)
mysql> select * from cabang;
+-------------+---------------+-----------+
| KODE_CABANG | NAMA_CABANG | KOTA
|
+-------------+---------------+-----------+
| CAB01
| M. YAMIN
| PONTIANAK |
| CAB02
| SUTAN SYAHRIR | PONTIANAK |
| CAB03
| AHMAD YANI
| PONTIANAK |
| CAB04
| SUKARNO HATTA | KUBU RAYA |
| CAB05
| SUPADIO
| KUBU RAYA |
+-------------+---------------+-----------+
5 rows in set (0.05 sec)
mysql> select * from karyawan;
+-------------+--------------+------------+-------------------------------+-----------+
| ID_KARYAWAN | NAMA
| TGL_LAHIR | ALAMAT
| TELP
|
+-------------+--------------+------------+-------------------------------+-----------+
| KR001
| SISKA
| 1988-08-12 | JL.MAYAPADA NO. 123 PONTIANAK | 0872
615312 |
| KR002
| FITRAH
| 1990-03-09 | JL.LESTARI NO. 90 KUBU RAYA | 0992
603219 |
| KR003
| JUAN PERDANA | 1988-03-27 | JL.MERAK NO.18 KUBU RAYA
| 0912
608223 |
| KR004
| RAYANA
| 1987-05-07 | JL.SEDERHANA NO.03 PONTIANAK | 0933
274986 |
| KR005
| MAHESA
| 1983-10-02 | JL. SEJAHTERA NO.13 PONTIANAK | 0986
355472 |
| KR006
| COKROADMODJO | 1979-04-22 | JL. ANUGERAH NO.133 PONTIANAK | 0988
634532 |
+-------------+--------------+------------+-------------------------------+-----------+
6 rows in set (0.06 sec)
mysql> select * from kode;
+------+---------------------+
| KODE | NAMA_KODE
|

+------+---------------------+
| 111 | SETORAN
|
| 112 | BUNGA
|
| 113 | PAJAK
|
| 114 | BIAYA ADMINISTRASI |
| 115 | PENARIKAN
|
| 116 | PENARIKAN TUNAI ATM |
| 117 | TRANSFER MASUK
|
| 118 | TRANSFER KELUAR
|
+------+---------------------+
8 rows in set (0.03 sec)
mysql> select * from nasabah;
+------------+-------------+------------+----------------------+-----------+
| ID_NASABAH | NAMA
| TGL_LAHIR | JALAN
| KOTA
|
+------------+-------------+------------+----------------------+-----------+
| NAS0001
| LARASITA
| 1965-10-11 | ADISUCIPTO NO. 112 | PONTIANAK |
| NAS0002
| ARYA GUNA | 1988-06-12 | SUPRAPTO NO. 15
| PONTIANAK |
| NAS0003
| SULASTRI
| 1978-04-28 | PARIT SEMBING NO. 20 | KUBU RAYA |
| NAS0004
| RURI ALFIAN | 1974-02-05 | KAMPUNG BARU NO. 20 | KUBU RAYA |
| NAS0005
| MELANI
| 1960-12-23 | M. YAMIN NO. 235
| PONTIANAK |
| NAS0006
| JOHANSYAH | 1979-07-24 | M. YAMIN NO. 89
| PONTIANAK |
| NAS0007
| ZIDANE
| 1985-03-25 | MERDEKA RAYA
| KUBU RAYA |
| NAS0008
| NOVARINA
| 1987-04-12 | AMPERA NO 23
| KUBU RAYA |
+------------+-------------+------------+----------------------+-----------+
8 rows in set (0.02 sec)
mysql> select * from rekening;
+-------------+-------------+------------+-------+
| NO_REKENING | KODE_CABANG | ID_NASABAH | SALDO |
+-------------+-------------+------------+-------+
| REK00001
| CAB01
| NAS0008
| NULL |
| REK00002
| CAB01
| NAS0003
| NULL |
| REK00003
| CAB04
| NAS0004
| NULL |
| REK00004
| CAB04
| NAS0001
| NULL |
| REK00005
| CAB05
| NAS0005
| NULL |
| REK00006
| CAB03
| NAS0006
| NULL |
| REK00007
| CAB01
| NAS0002
| NULL |
| REK00008
| CAB05
| NAS0007
| NULL |
+-------------+-------------+------------+-------+
8 rows in set (0.05 sec)
mysql> select * from transaksi;
+-----------+-------------+-------------+------+------------+---------+--------+
| NO_KREDIT | NO_REKENING | ID_KARYAWAN | KODE | TANGGAL
| KREDIT | DEBET
|
+-----------+-------------+-------------+------+------------+---------+--------+
| DE001
| REK00001
| KR002
| 115 | 2013-01-25 |
0 | 1000000
|
| DE002
| REK00006
| KR004
| 115 | 2013-02-10 |
0 | 1500000
|
| DE003
| REK00008
| KR006
| 115 | 2013-03-05 |
0 | 500000
|
| DE004
| REK00001
| KR002
| 116 | 2013-03-05 |
0 | 1000000
|
| DE005
| REK00001
| KR002
| 114 | 2013-03-05 |
0 | 10000
|
| DE006
| REK00001
| KR002
| 114 | 2013-03-05 |
0 | 10000

|
| DE007
| REK00002
| KR002
| 114 | 2013-03-05 |
0 | 10000
|
| DE008
| REK00003
| KR003
| 114 | 2013-03-05 |
0 | 10000
|
| DE009
| REK00004
| KR003
| 114 | 2013-03-05 |
0 | 10000
|
| DE010
| REK00005
| KR006
| 114 | 2013-03-05 |
0 | 10000
|
| DE011
| REK00006
| KR004
| 114 | 2013-03-05 |
0 | 10000
|
| DE012
| REK00007
| KR001
| 114 | 2013-03-05 |
0 | 10000
|
| DE013
| REK00008
| KR006
| 114 | 2013-03-05 |
0 | 10000
|
| DE014
| REK00007
| KR001
| 116 | 2013-03-10 |
0 | 700000
|
| KR001
| REK00001
| KR002
| 111 | 2013-01-10 | 3000000 |
0
|
| KR002
| REK00002
| KR002
| 111 | 2013-02-08 | 4000000 |
0
|
| KR003
| REK00007
| KR001
| 111 | 2013-02-25 | 2000000 |
0
|
| KR004
| REK00003
| KR003
| 111 | 2013-02-11 | 6000000 |
0
|
| KR005
| REK00004
| KR003
| 111 | 2013-02-20 | 3000000 |
0
|
| KR006
| REK00005
| KR006
| 111 | 2013-02-22 | 3500000 |
0
|
| KR007
| REK00008
| KR006
| 111 | 2013-02-25 | 4500000 |
0
|
| KR008
| REK00006
| KR004
| 111 | 2013-01-07 | 7000000 |
0
|
| KR009
| REK00001
| KR002
| 112 | 2013-03-01 | 12000 |
0
|
| KR010
| REK00002
| KR002
| 112 | 2013-03-01 | 12000 |
0
|
| KR011
| REK00003
| KR003
| 112 | 2013-03-01 | 12000 |
0
|
| KR012
| REK00004
| KR003
| 112 | 2013-03-01 | 12000 |
0
|
| KR013
| REK00005
| KR006
| 112 | 2013-03-01 | 12000 |
0
|
| KR014
| REK00006
| KR004
| 112 | 2013-03-01 | 12000 |
0
|
| KR015
| REK00007
| KR001
| 112 | 2013-03-01 | 12000 |
0
|
| KR016
| REK00008
| KR006
| 112 | 2013-03-01 | 12000 |
0
|
+-----------+-------------+-------------+------+------------+---------+--------+
30 rows in set (0.05 sec)