Based On Business Rules in Case Study
Based On Business Rules in Case Study
Based On Business Rules in Case Study
The following input has been identified based on the requirement study done by Top Electronic and
the Relational Database :
Tables Attributes
Brand BrandID, BrandName
Type TypeID, TypeName
Staff StaffID, StaffName
Customer CustomerID, CustName, CustAddress, CustPhone, CustEmail
Warehouse WarehouseID, WarehouseName, Waddress, WPhone, WEmail, StaffID
Product ProductID, BrandID, PModelNumber, typeID , PWarranty, PRetail_Price,
WarehouseID
Purchasing Purchasing_No, PurchaseDt, PurchaseTotal, CustomerID
PurchasingDetails Purchasing_No, ProductID, Quantity
INSERT INTO TYPEPRODUCT (TYPEID, TYPENAME) VALUES ('WM010', 'INTELL. WASHING MACHINE');
INSERT INTO TYPEPRODUCT (TYPEID, TYPENAME) VALUES ('RC005', 'RICE COOKER');
INSERT INTO TYPEPRODUCT (TYPEID, TYPENAME) VALUES ('TV999', 'SMART TV');
INSERT INTO TYPEPRODUCT (TYPEID, TYPENAME) VALUES ('AC006', 'HYBRID AIRCON');
INSERT INTO TYPEPRODUCT (TYPEID, TYPENAME) VALUES ('MC102', 'MICROWAVE');
CREATE TABLE STAFF
(
StaffID VARCHAR (5) NOT NULL PRIMARY KEY,
StaffName VARCHAR (25) NOT NULL
);
iii. List of the customers that purchase total equal or more than 3000.00.
iv. List in the alphabetically order by Customer Name who buy the product
'MICROWAVE'.