You are on page 1of 2

1.

Tabel custemer
ID_cutomer Nama_customer Email Alamat No.telp
001 Budi abcd@gmail.com Cimahi 6685674
002 Andi bcdf@gmail.com Pulogadung 8765642
003 Joko uuty@gmail.com Gayungan 6257216
003 Joko uuty@gmail.com Gayungan 6876549

2. Tabel Address book


ID_Address Nama_customer Address City No.telp ID_cutomer
0AA Budi Cimahi bandung 6685674 001
0BB Andi Pulogadung jakarta 8765642 002
0CC Joko Gayungan surabaya 6257216 003
0CC Joko Gayungan surabaya 6876549 003

3. Tabel Orders
ID_Orders Code_Orders Date_orders Payment_Status ID_cutomer ID_Address
111 AAA 15/01/2008 Paid 001 0AA
222 BBB 11/09/2008 Not_Paid 002 0BB
333 CCC 12/10/2008 Paid 003 0CC

4. Tabel Payment
ID_Payment Code_Order
001A AAA
001B BBB
001C CCC

5. Tabel product
ID_Product Nama_Product Price ID_Category
A12 Tas Rp. 125.000 T1
C22 Sepatu Rp. 459.000 S2
R54 Jaket Rp. 477.000 J8

6. Tabel Orders Detail


ID_cutomer Code_Order ID_Product Qty Subtotal
001 AAA A12 1 1
002 BBB C22 3 3
003 CCC R54 2 2
- Normal form
ID_cutomer Nama_customer No.telp ID_Address Address City ID_Orders Code_Orders Date_orders Payment_Status
001 Budi 6685674 0AA Cimahi bandung 111 AAA 15/01/2008 Paid
002 Andi 8765642 0BB Pulogadung jakarta 222 BBB 11/09/2008 Not_Paid
003 Joko 6257216 0CC Gayungan surabaya 333 CCC 12/10/2008 Paid
003 Joko 6876549 0CC Gayungan surabaya 333 CCC 12/10/2008 Paid

ID_Payment Code_Order ID_Product Nama_Product Price ID_cutomer Qty


001A AAA A12 Tas Rp. 125.000 001 1
001B BBB C22 Sepatu Rp. 459.000 002 3
001C CCC R54 Jaket Rp. 477.000 003 2

- 1NF
ID_cutomer Nama_customer No.telp ID_Address Address City
001 Budi 6685674 0AA Cimahi bandung
002 Andi 8765642 0BB Pulogadung jakarta
003 Joko 6257216 0CC Gayungan surabaya

ID_Orders Code_Orders Date_orders Payment_Status


111 AAA 15/01/2008 Paid
222 BBB 11/09/2008 Not_Paid
333 CCC 12/10/2008 Paid

- 2NF
ID_cutomer ID_Address ID_Orders Code_Orders Date_orders Payment_Status
001 0AA 111 AAA 15/01/2008 Paid
002 0BB 222 BBB 11/09/2008 Not_Paid
003 0CC 333 CCC 12/10/2008 Paid

You might also like