A. Attribut a. Attribut bernilai tungal  No Faktur  Tanggal  Jtp b.

Attribut bernilai ganda  No  Perincian  Unit  Harga Unit  Jumlah c. Attribut turunan  Total

No_faktur tgl

Jtp

No

Perincian Unit

Harga_unit Jumlah

Total

B. Normal Pertama (1NF)

No_faktur

tgl

jtp

No_faktur No

Perincian

unit

Harga_unit

jumlah

C. Normal Kedua (2NF) No_faktur tgl jtp

No_faktur No

Perincian

jumlah

No

Perincian

Unit

Harga_unit

D. Relasi File T Faktur No_faktur Tgl Jtp T Barang No Perincian Unit Harga_unit

T Transaksi No_faktur No Perincian Jumlah

E. Spesifikasi File 1. Tabel Faktur Attribut No_faktur tgl Jtp 2. Tabel Transaksi Attribut No_faktur No Perincian Jumlah 3. Tabel Barang Attribut No Perincian Unit Harga_unit Type int Character int int Width/lebar 10 50 10 15 Keterangan Not Null Not Null Not Null Not Null Type Character int Character int Width/lebar 30 10 50 15 Keterangan Not Null Not Null Not Null Not Null Type Character Dater Dater Width/lebar 30 8 8 Keterangan Not Null Not Null Not Null

F. Implementasi Data  Tabel Faktur CREATE TABLE `t_faktur` ( `no_faktur` VARCHAR( 30 ) NOT NULL , `tgl` DATE NOT NULL , `jtp` DATE NOT NULL , PRIMARY KEY ( `no_faktur` ) ) TYPE = MYISAM  Tabel Transaksi CREATE TABLE `t_transaksi` (

no_faktur` VARCHAR( 30 ) NOT NULL , `no` INT( 10 ) NOT NULL , `perincian` VARCHAR( 50 ) NOT NULL , `jumlah` INT( 15 ) NOT NULL , PRIMARY KEY ( `no_faktur` , `no` , `perincian` ) ) TYPE = MYISAM ;  Tabel Barang CREATE TABLE `t_barang` ( no` INT( 10 ) NOT NULL , `perincian` VARCHAR( 50 ) NOT NULL , `unit` INT( 10 ) NOT NULL , `harga_unit` INT( 15 ) NOT NULL , PRIMARY KEY ( `no` , `perincian` ) ) TYPE = MYISAM ;

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master Your Semester with a Special Offer from Scribd & The New York Times

Cancel anytime.