You are on page 1of 5

Contoh Normalisasi Data

NIM: 22030044
Nama: Ghina Nabilah Rofifah Ridwan
Prodi: D3 Komputerisasi Akuntansi
Mata Kuliah: Sistem Basis Data
Dosen Pengampu: Haris Supriatna,S.T.,M.Kom.,CSCU

UNF
SalesID SalesDate CustomerID CustomerNama CustomerPhone
512075 20Mei2021 CU2024 Andrew 082120740783
512075 20Mei2022 CU2025 Andrew 082120740783
512075 20Mei2023 CU2026 Andrew 082120740783
512075 20Mei2024 CU2027 Andrew 082120740783
512075 20Mei2025 CU2028 Andrew 082120740783
512075 20Mei2026 CU2029 Andrew 082120740783

1NF
Tr Transaction Header
SalesID(pk) SalesDate CustomerID CustomerNama CustomerPhone
512075 20Mei2021 CU2024 Andrew 082120740783
Tr Transaction Detail
SalesID CakeID CakeName CakePrice CakeSize
512075 CK2010 Spesial signature 400000
512075 CK2011 Chocolate 210000
512075 CK2012 Strawberry 235000
512075 CK2013 Triple Choco 200000
512075 CK2014 Red Velvet 375000
512075 CK2015 Regal Choco 345000

Partial Dependency
CakeID -> CakeName,CakePrice,CakeSize,CakeDescription

Transitive Dependency
CustomerID -> CustomerName,CustomerPhone,CustomerEmail, CustomerAddress
StaffID-> StaffName, StaffPositon, StaffAddress, StaffEmail, StaffPhone

2NF
SalesID(pk) SalesDate CustomerID CustomerNama CustomerNama
512075 20Mei2021 CU2024 Andrew Andrew
Tr Transaction Detail
SalesID(PK, FP) CakeID Quantity
512075 CK2010 5
512075 CK2011 3
512075 CK2012 6
512075 CK2013 5
512075 CK2014 2
512075 CK2015 2
MSCake
CakeID CakeName CakePrice CakeSize CakeDescription
CK2010 Spesial signature 400000
CK2011 Chocolate 210000
CK2012 Strawberry 235000
CK2013 Triple Choco 200000
CK2014 Red Velvet 375000
CK2015 Regal Choco 345000
3NF
SalesID(pk) SalesDate CustomerID (FK) StafName StaffPosition
512075 20Mei2021 CU2024 Tururu Sales
Tr Transaction Detail
SalesID(PK, FP) CakeID Quantity
512075 CK2010 5
512075 CK2011 3
512075 CK2012 6
512075 CK2013 5
512075 CK2014 2
512075 CK2015 2
MSCake
CakeID CakeName CakePrice CakeSize CakeDescription
CK2010 Spesial signature 400000
CK2011 Chocolate 210000
CK2012 Strawberry 235000
CK2013 Triple Choco 200000
CK2014 Red Velvet 375000
CK2015 Regal Choco 345000

CustomerID(PK)CustomerNama CustomerPhone CustomerEmail CustomerAddres


CU2024 Andrew 082120740783 andrew50@gmail.com Jl. Syahyang
CustomerEmail CustomerAddres No CakeID CakeName CakePrice
andrew50@gmail.com Jl. Syahyang 1 CK2010 Spesial signature 400000
andrew50@gmail.com Jl. Syahyang 2 CK2011 Chocolate 210000
andrew50@gmail.com Jl. Syahyang 3 CK2012 Strawberry 235000
andrew50@gmail.com Jl. Syahyang 4 CK2013 Triple Choco 200000
andrew50@gmail.com Jl. Syahyang 5 CK2014 Red Velvet 375000
andrew50@gmail.com Jl. Syahyang 6 CK2015 Regal Choco 345000

CustomerEmail CustomerAddres StafNameStaffPosition StaffEmail StaffPhone


andrew50@gmail.com Jl. Syahyang Tururu Sales

CakeDescription Quantity

CustomerEmail CustomerAddres StafNameStaffPosition StaffEmail StaffPhone


andrew50@gmail.com Jl. Syahyang Tururu Sales
StaffEmail StaffPhone
Quantity Total Price StafName StaffPosition
5 6480000 Tururu Sales
3 6480001 Tururu Sales
6 6480002 Tururu Sales
5 6480003 Tururu Sales
2 6480004 Tururu Sales
2 6480005 Tururu Sales

You might also like