You are on page 1of 6

MAKALAH PERANCANGAN BASIS DATA NORMALISASI

oleh : Annisa Nurmaharani 30311084 PCA-11-01

Normalisasi adalah proses menganalisa functional-dependencies diantara atribut-atribut dan proses dekomposisi relasi yang memiliki anomaly-anomali (kelainan) sehingga dapat menghasilkan relasi yang terstruktur dengan baik. Relasi yang terstruktur dengan baik harus meminimalisasii redundancy sehingga data dalam basisdata dapat ditambahkan, di ubah dan di hapus tanpa eror dan tanpa inconsistency. Normalisasi adalah proses formal untuk memutuskan atribut mana yang harus dikelompokkan bersama dalam suatu relasi. Normalisasi adalah langkah-langkah sistematis untuk menjamin bahwa struktur database memungkinkan untuk general purpose query dan bebas dari insertion, update dan deletion anomalies yang dapat menyebabkan hilangnya integritas data. (E.F Codd,1970)

1.

Perhatikan kasus berikut. Data Penjualan dari Toko Amandaz


TGL 13Apr2012 NO_BRG BSKR BBRY NM_BRG Brownies Kukus Srikaya Brownies Kukus Blueberry Brownies Kukus Blueberry Pisang Bolen Cokelat Pisang Bolen Keju Brownies Kukus Srikaya Pisang Bolen Keju Pisang Bolen Cokelat Pisang Bolen Keju NO_TYPE BROW BROW NM_TYPE Brownies Brownies HRG_BRG 28,000 30,000 QTY 1 2 TOT_ITEM 28,000 60,000 DISC 10% 10% TOT_ITEM 25,200 54,000 TOT_PYMNT 79,200

NO_NOTA NT00175

NT00176

13Apr2012

BBRY

BROW

Brownies

30,000

30,000

10%

27,000

127,000

BLCO BLKJ NT00177 14Apr2012 BSKR BLKJ NT00178 15Apr2012 BLCO BLKJ

BLEN BLEN BROW BLEN BLEN BLEN

Pisang Bolen Pisang Bolen Brownies Pisang Bolen Pisang Bolen Pisang Bolen

24,000 26,000 28,000 26,000 24,000 26,000

2 2 5 5 2 2

48,000 52,000 140,000 130,000 48,000 52,000

0 0 10% 0 0 0

48,000 52,000 126,000 130,000 48,000 52,000 100,000 256,000

a. b.

Identifikasi apakah laporan tersebut unnormalized (UDF)? Buktikan! Apabila terbukti unnormalized (UDF) maka lakukan langkah-langkah normalisasi! (setiap tahap tuliskan kriteria, langkap menormalisasi dan kesimpulan)

Jawab : Kasus laporan tersebut merupakan bentuk tidak normal (unnormalized). Karena laporan diatas masih terdapat baris data yang null/kosong. Untuk menormalkan laporan tersebut, kita harus melakukan langkah-langkah yang dapat menormalkan kasus diatas hingga normal. Berikut tahapannya : Bentuk normal kesatu (1NF) Syarat : 1. Tidak terdapat baris data yang kosong

NO_NOTA NT00175

TGL 13Apr12 13Apr12 13Apr12 13Apr12 13Apr12 14Apr12 14Apr12 15Apr12 15Apr12

NO_BRG BSKR

NM_BRG Brownies Kukus Srikaya

NO_TYPE BROW

NM_TYPE Brownies

HRG_BRG 28,00

QTY 1

DISC 10%

TOT_ITEM 25,200

TOT_PYMNT 79,200

NT00175

BBRY

Brownies Kukus Blueberry

BROW

Brownies

30,00

10%

54,000

79,200

NT00176

BBRY

Brownies Kukus Blueberry

BROW

Brownies

30,00

10%

27,000

127,000

NT00176

BLCO

Pisang Bolen Cokelat

BLEN

Pisang Bolen Pisang Bolen Brownies

24,00

48,000

127,000

NT00176

BLKJ

Pisang Bolen Keju

BLEN

26,00

52,000

127,000

NT00177

BSKR

Brownies Kukus Srikaya

BROW

28,00

10%

126,000

256,000

NT00177

BLKJ

Pisang Bolen Keju

BLEN

Pisang Bolen Pisang Bolen Pisang Bolen

26,00

130,000

256,000

NT00178

BLCO

Pisang Bolen Cokelat

BLEN

24,00

48,000

100,000

NT00178

BLKJ

Pisang Bolen Keju

BLEN

26,00

52,000

100,000

2. Tidak terdapat atribut (kolom) pada tabel yang bersifat multi-value 3. Tidak memiliki atribut lebih dari satu dengan domain yang sama

Bentuk normal kedua (2NF) Syarat : 1. Memenuhi 1NF, ya 2. Tidak terdapat Parsial Functional Depedency (B,C) adalah candidate key B A A bergantung secara parsial terhadap (B,C)

NO_NOTA NT00175 NT00175 NT00176 NT00176 NT00176 NT00177 NT00177 NT00178 NT00178

TGL 13-Apr-12 13-Apr-12 13-Apr-12 13-Apr-12 13-Apr-12 14-Apr-12 14-Apr-12 15-Apr-12 15-Apr-12

NO_NOTA NT00175 NT00175 NT00176 NT00176 NT00176 NT00177 NT00177 NT00178 NT00178

NO_BRG BSKR BBRY BBRY BLCO BLKJ BSKR BLKJ BLCO BLKJ

DISC 10% 10% 10% 0 0 10% 0 0 0

TOT_ITEM 25,200 54,000 27,000 48,000 52,000 126,000 130,000 48,000 52,000

TOT_PYMNT 79,200 79,200 127,000 127,000 127,000 256,000 256,000 100,000 100,000

NO_BRG BSKR BBRY BBRY BLCO BLKJ BSKR BLKJ BLCO BLKJ

NM_BRG Brownies Kukus Srikaya Brownies Kukus Blueberry Brownies Kukus Blueberry Pisang Bolen Cokelat Pisang Bolen Keju Brownies Kukus Srikaya Pisang Bolen Keju Pisang Bolen Cokelat Pisang Bolen Keju

NO_TYPE BROW BROW BROW BLEN BLEN BROW BLEN BLEN BLEN

NM_TYPE Brownies Brownies Brownies Pisang Bolen Pisang Bolen Brownies Pisang Bolen Pisang Bolen Pisang Bolen

HRG_BRG 28,00 30,00 30,00 24,00 26,00 28,00 26,00 24,00 26,00

QTY 1 2 1 2 2 5 5 2 2

Bentuk normal ketiga (3NF) Syarat : 1. Memenuhi 2NF, ya 2. Tidak terdapat Transitive Functional Depedency A B B C C bergantung secara transitif terhadap A melalui B

NO_TYPE BROW BROW BROW BLEN BLEN BROW BLEN BLEN BLEN

NM_TYPE Brownies Brownies Brownies Pisang Bolen Pisang Bolen Brownies Pisang Bolen Pisang Bolen Pisang Bolen

Kesimpulannya : Tabel tersebut sudah normal pada bentuk normal ketiga (3NF). Berikut tabel yang sudah normal :
NO_NOTA NT00175 NT00175 NT00176 NT00176 NT00176 NT00177 NT00177 NT00178 NT00178 TGL 13-Apr-12 13-Apr-12 13-Apr-12 13-Apr-12 13-Apr-12 14-Apr-12 14-Apr-12 15-Apr-12 15-Apr-12 NO_NOTA NT00175 NT00175 NT00176 NT00176 NT00176 NT00177 NT00177 NT00178 NT00178 NO_BRG BSKR BBRY BBRY BLCO BLKJ BSKR BLKJ BLCO BLKJ DISC 10% 10% 10% 0 0 10% 0 0 0 TOT_ITEM 25,200 54,000 27,000 48,000 52,000 126,000 130,000 48,000 52,000 TOT_PYMNT 79,200 79,200 127,000 127,000 127,000 256,000 256,000 100,000 100,000

NO_BRG BSKR BBRY BBRY BLCO BLKJ BSKR BLKJ BLCO BLKJ

NM_BRG Brownies Kukus Srikaya Brownies Kukus Blueberry Brownies Kukus Blueberry Pisang Bolen Cokelat Pisang Bolen Keju Brownies Kukus Srikaya Pisang Bolen Keju Pisang Bolen Cokelat Pisang Bolen Keju

NO_TYPE BROW BROW BROW BLEN BLEN BROW BLEN BLEN BLEN

NM_TYPE Brownies Brownies Brownies Pisang Bolen Pisang Bolen Brownies Pisang Bolen Pisang Bolen Pisang Bolen

HRG_BRG 28,00 30,00 30,00 24,00 26,00 28,00 26,00 24,00 26,00

QTY 1 2 1 2 2 5 5 2 2

NO_TYPE BROW BROW BROW BLEN BLEN BROW BLEN BLEN BLEN

NM_TYPE Brownies Brownies Brownies Pisang Bolen Pisang Bolen Brownies Pisang Bolen Pisang Bolen Pisang Bolen

You might also like