Rine06′s Weblog



CONTOH PERANCANGAN DATABASE

<!– @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } –>

RANCANGAN DESAIN DATABASE PENJUALAN “TOKO XYZ” DENGAN TEKNIK PERANCANGAN FORMAL

Entitas / Tabel yang dibutuhkan :

  • Entitas / Tabel Customer

  • Entitas / Tabel Barang

  • Entitas / Tabel Jenis_Barang

  • Entitas / Tabel Transaksi

  • Entitas / Tabel Supplier

Atribut / Field yang dibutuhkan :

Tabel Customer

Field Type
id_customer numerik ( 6 ), unik tidak boleh ada yang sama
nama_customer text ( 50 )
alamat_customer text ( 100 )
telepon_customer text ( 20 )

Tabel Barang

Field Type
kode_barang text ( 6 ), unik tidak boleh ada yang sama
nama_barang text ( 100 )
id_jenis_barang numerik ( 6 )
id_supplier numerik ( 6 )
harga text ( 15 )

Tabel Jenis_Barang

Field Type
id_jenis_barang numerik (6 )
nama_jenis_barang text ( 100 )

Tabel Transaksi

Field Type
kode_transaksi text ( 6 ), unik tidak boleh ada yang sama
id_customer numerik ( 6 )
kode_barang text ( 6 )
tgl_transaksi datetime
keterangan text ( 255 )

Tabel Supplier

Field Type
id_supplier numerik (6 )
nama_supplier text ( 100 )

Entity Relationship Diagram ( ERD )

Model Relasi Antar Tabel

* Primary Key

** Foreign Key

Sample / Contoh Record Data Customer

id_customer nama_customer alamat_customer telepon_customer
100001 Paijo Jl Buntu 20 Malang 0341-123456
100002 Tarmini Jl Gantung 10 Surabaya 031-4567890

Sample / Contoh Record Data Barang

kode_barang nama_barang id_jenis_barang id_supplier harga
01-0001 Printer Canon IP 1700 1 1 450.000
05-0003 Harddisk Maxtor 60 GB 2 2 390.000
06-0022 Notebook Acer TravelMate 3 3 8.000.000

Sample / Contoh Record Data Jenis Barang

id_jenis_barang nama_jenis_barang
1 Printer
2 Hardisk
3 Notebook

Sample / Contoh Record Data Transaksi

kode_transaksi id_customer kode_barang tgl_transaksi keterangan
T00001 100001 01-0001 2007-03-27 DP 50%, bayar Rp 225.000
T00002 100001 06-0022 2007-03-27 Bayar Lunas
T00003 100002 01-0001 2007-03-27 Kurang 100.000
T00004 100002 05-0003 2007-03-28 Bayar Lunas

Sample / Contoh Record Data Supplier

id_supplier nama_supplier
1 PT Canon Indonesia
2 PT Maxtorindo
3 PT Acer Internasional

O

utput Report / Laporan

Nota Penjualan Barang “TOKO XYZ”

Diberikan kepada :

Nama : Paijo

Alamat : Jl Buntu 20 Malang

Telepon : 0341-123456

Tgl. Transaksi : 2007-03-27

kode_barang nama_barang jenis_barang harga
01-0001 Printer Canon IP 1700 Printer 450.000
06-0022 Notebook Acer TravelMate Notebook 8.000.000
Total ( Rp. ) 8.450.000

Nota Penjualan Barang “TOKO XYZ”

Diberikan kepada :

Nama : Tarmini

Alamat : Jl Gantung 10 Surabaya

Telepon : 031-4567890

Tgl. Transaksi : 2007-03-28

kode_barang nama_barang jenis_barang harga
05-0003 Harddisk Maxtor 60 GB Harddisk 390.000
Total ( Rp. ) 390.000

SUMBER: WWW.GOOGLE.COM


Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.