Professional Documents
Culture Documents
PASCAL
PASCAL
PASCAL
Entities Attributes
Product ProductID, ProductName, ProductType, ProductPrice
Supplier SupplierID, SupplierName, SupplierNum, SupplierAddress
Customer CustomerID, CustomerName, CustomerNum, CustomerAddress
Bill InvoiceNo, Amount, PayType, NumOfItem, ProductID
Order OrderID, OrderDate, OrderTime, ProductID, CustomerID
Store StoreID, StoreLocation, StoreD.Add, ProductID, OrderID
Delivery DeliveryID, DeliveryTime, DeliveryDate, ProductID, SupplierID, InvoiceID, CustomerID
ERD Diagram
C.Data dictionary
Product
Supplier
Customer
Bill
Order
Delivery
PRODUCT VALUES
Insert into Product values ('P01','Malt','Staple','75 Ghc')
Insert into Product values ('P02','Fanta','Impulse','15 Ghc')
Insert into Product values ('P03','Coca Cola','Shopping','41 Ghs')
Insert into Product values ('P04','Pepsi','Emergency','67 Ghc')
select *from Product;
Five queries that shows my understanding of SQL
Qwery2:Update
Update Bill
set Amount ='375 Ghs', PayType='Debit card',NumOfItem='5'
where InvoiceNo='1103'
Query 3 delete
delete from Delivery
where DeliveryID='D01' and DeliveryTime='8 Pm'
Query 5 and
select InvoiceNo,Amount,PayType from Bill where Amount>='150 Ghs' and Amount<='615
Ghs'
Create database retail;
Use retail;
Update Bill
set Amount ='375 Ghs', PayType='Debit card',NumOfItem='5'
where InvoiceNo='1103'
--Queries