Company Profile
adalah sebuah perusahaan ritel di Indonesia yang
merupakan pemilik dari jaringan supermarket Carrefour
MENGENALI serta Carrefour Express. Saat ini, Transmart merupakan
TRANSMART salah satu anak perusahaan dari Trans Corp. Pada tahun
2021, semua gerai Carrefour di seluruh Indonesia telah
berubah menjadi Transmart.
AN IZ ATIO N
ORG
STRUC TU R E
COMPA NY BU SINESS
PR OC ES S
Mission Objective Untuk mengelola tabel (insert, update, select) pada staff
Untuk mengelola tabel (insert, update, select) pada customer
Untuk mengelola tabel (insert, update, select) pada produk
Untuk mengelola tabel (insert, update, select) pada distributor
Untuk mengelola tabel (insert, update, select) pada transaksi
Untuk mengelola tabel (insert, update, select) pada persediaan
System Definition
Unormalized Sales
1NF Staff
Customer
Sales-Product
2NF
Sales
Product
3NF
SalesHeader
SalesDetail
Normalization
Staff
Product
Customer SalesDetail
SalesHeader
Modeling
Logical ER
D at abase
Physica l
De sig n
Table : Product
Table : Distributor Table: Transaction Header
Primary Key
ProductID FORMAT CHECK (ProductID LIKE 'PRO[0-9] Domain Constraint: Domain Constraint
[0-9][0-9]') DistributorID > format DISXXX (X berupa integer) TransactionID: CHAR(5) -> (TransactionID
ProductName varchar(30) DistributorName > varchar (50) CHECK(TransactionID LIKE 'TR[0-9][0-9][0-9]'))
ProductDesc varchar(100) DistributorAddress > varchar (255) TransactionDate: DATE
ProductPrice int(10) DistributorPhone > int (15) StaffID (Foreign key Staff)
ProductType varchar(30) CustomerID (Foreign key Customer)
Mandatory:
Mandatory DistributorID, DistributorName, DistributorAddress, Mandatory
ProductID, ProductName, ProductDesc, ProductPrice DistributorPhone TransactionID, TransactionDate, StaffID, CustomerID
D at abase
Physica l
De sig n
Table : Customer Table:Staff
Table :Payment
DDL
DDL:
CREATE TABLE Customer( Primary Key CREATE TABLE Staff(
CustomerID VARCHAR(10) IDENTITY(1,1) PRIMARY PaymentID StaffID CHAR(5) PRIMARY KEY CHECK(StaffID LIKE
KEY NOT NULL, 'ST[0-9][0-9][0-9]') NOT NULL,
CustomerName VARCHAR(60) NOTNULL Domain Constraint StaffName VARCHAR(50) NOT NULL,
CustomerEmail VARCHAR(50) NOT NULL CHECK PaymentID varchar(5), format PM### StaffPhone VARCHAR(15) NOT NULL,
(CustomerEmail LIKE '%@%.%') PaymentMethod > Card or Cash or MBanking StaffGender VARCHAR(6) CHECK(StaffGender LIKE
CustomerAddress VARCHAR(100) NOT NULL PaymentDate date 'Male' OR 'Female') ,
CustomerDOB DATE StaffPosition VARCHAR(25) NOT NULL
) Mandatory )
DML PaymentMethod, PaymentDate
INSERT INTO CustomerName VALUES('Ramadya') DML:
SELECT * Foreign Key SELECT * FROM Staff
FROM CustomerName None WHERE StaffPosition = 'Data Processor'
UI DESIGN TRANSACTION
UI DESIGN PAYMENT
Terima Kasih!