Normalisasi

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Normalisasi as PDF for free.

More details

  • Words: 301
  • Pages: 4
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

No_faktur No

tgl

jtp

Perincian

unit

Harga_unit

C. Normal Kedua (2NF) No_faktur

tgl

No_faktur No

No

jtp

Perincian

Perincian

Unit

jumlah

Harga_unit

D. Relasi File T Faktur No_faktur Tgl Jtp

T Transaksi No_faktur No Perincian Jumlah

T Barang No Perincian Unit Harga_unit

jumlah

E. Spesifikasi File 1. Tabel Faktur Attribut No_faktur tgl Jtp

Type Character Dater Dater

Width/lebar 30 8 8

Keterangan 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 int Character int int

Width/lebar 10 50 10 15

Keterangan Not Null Not Null Not Null Not Null

2. Tabel Transaksi Attribut No_faktur No Perincian Jumlah 3. Tabel Barang Attribut No Perincian Unit Harga_unit

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 ;

Related Documents

Normalisasi
June 2020 9
Normalisasi
November 2019 18
Normalisasi
December 2019 27
Normalisasi
November 2019 15
Normalisasi Kr.docx
December 2019 21