Logical Database Design
Logical Database Design
KELOMPOK :
1. (2301878630) MIRANDA ARDANI
2. (2301913564) MAULANA DZAKY RISWANDI
3. (2301947426) ZHARFAN NASYWA KEMAL
4. (2301911230) LEONARDUS ARIEL KEISA PURBA
5. (2301913343) AJIE PERDANA
BEKASI
14 Oktober 2020
LOGICAL DATABASE DESIGN
2.1
1. Strong Entity Type
FormMember is a weak entity type, because if the Customer entity is deleted, the FormMember
must also be deleted.
3. One to Many (1..*) binary relationship type
Didalam one to one binary relationship types adalah mengenai penentuan parents class dan
child class, dan disini kita menentukan Transaction sebagai parents class dan Payment
sebagai child class.
Transaction : (TransactionID, CustomerID, PromoID, TransactionDate,
TransactionMethod)
Primary key : TransactionID
Payment : (PaymentID, TransactionID, StaffID, PaymentType, TotalPrice, Status)
Primary key : PaymentID
From *:* relationship Transaction has Product, the has relationship mempunyai satu
atribut yaitu Qty. Untuk merepresentasikan relationship tersebut, dapat dibuat sebuah relasi
DetailTransaction untuk merepresentasikan relationship Has :
DetailTransaction (ProductID, TransactionID, Qty)
In staff entity, one staff member can handle multiple products, so we create a new relationship
called Products and post the IdStaff into the Products
2.2 Normalisasi
UNF / Unnormalized Form
IdTransaction , IdMember, IdProduct, IdSupplier, IdWarehouse, IdStaff, MemberName,
MemberPhoneNumber, MemberGender, MemberDOB, TransactionDate, PaymentType,
ProductName, ProductCategory, ProductPrice, ProductBrand, ProductStock, ExpiryDateProduct,
SupplierName, SupplierRating, SuppluerCompany, WarehouseName, WarehouseAddress,
StaffName, StaffAddress, StaffPhoneNumber, StaffBOD, StaffGender, StaffSalary,
TransactionBonus, TransactionDiscount.
1NF
IdTransaction(PK), IdMember, IdProduct, IdSupplier, IdWarehouse, IdStaff, MemberName,
MemberPhoneNumber, MemberGender, MemberDOB, TransactionDate, PaymentType,
ProductName, ProductCategory, ProductPrice, ProductBrand, ProductStock, ExpiryDateProduct,
SupplierName, SupplierRating, SuppluerCompany, WarehouseName, WarehouseAddress,
StaffName, StaffAddress, StaffPhoneNumber, StaffBOD, StaffGender, StaffSalary,
TransactionBonus, TransactionDiscount.
2NF
Transaction Header
IdTransaction(PK), IdMember, IdProduct, IdSupplier, IdWarehouse, IdStaff, MemberName,
MemberPhoneNumber, MemberGender, MemberDOB, ProductName, ProductPrice ,
SupplierName, StaffName, StaffAddress, StaffPhoneNumber, StaffBOD, StaffGender,
StaffSalary.
Detail Transaction
IdDetailTransaction(PK), TransactionBonus, TransactionDiscount, TransactionDate,
PaymentType, SupplierRating, SuppluerCompany, WarehouseName, WarehouseAddress.
3NF
Transaction Header
IdTransaction(PK), IdDetailTransaction, IdMember, IdProduct, IdSupplier, IdWarehouse,
IdStaff.
Detail Transaction
IdDetailTransaction(PK), TransactionBonus, TransactionDiscount, TransactionDate,
PaymentType, ,
Member
IdMember(PK), MemberName, MemberPhoneNumber, MemberGender, MemberDOB.
Product
IdProduct(PK), ProductName, ProductPrice ProductBrand, ProductStock, ExpiryDateProduct,
ProductBrand, ProductStock, ExpiryDateProduct
Supplier
IdSupplier(PK), SupplierName, SupplierRating, SuppluerCompany.
Warehouse
IdWarehouse(PK), WarehouseName, WarehouseAddress.
Staff
IdStaff(PK), StaffName, StaffAddress, StaffPhoneNumber, StaffBOD, StaffGender, StaffSalary.
ER Logical