Question: please provide witj screenshots of the code, using sql : Customer customer ( cno , cname , mileage ) #customer number, customer name, mileage Supplier
please provide witj screenshots of the code, using sql :
Customer customer
cno
cname mileage
#customer number, customer name, mileage
Supplier s
sno
sname city
#Supplier number, supplier name, supplier city
Production product p
pno
pname price
# product number, product name, weight
Supplied product product
sno
pno qty
#Supplier number, product number, supply quantity
Stock stock
pno
stqty
# product number, stock quantity
Order order
ono
cno pno, oqty
# order number, customer number, product number, order quantity
Sale sale
pno
sqty
# Order number, product number, sales volume
Return returned
ono
pno
# Order number, Product number
Order Cancel orderCancel
ono
cno pno, tag
# Order number, customer number, product number, tag
displayed as
for order cancellation,
for return
As an initial state, customer, s
and p enter
or more records. For example, enter records c
c
c
c
c
When inserted into a supplied product, it is triggered to enter or change the inventory table.
It is triggered when inserted into the order table, and if it exceeds the inventory quantity, it is triggered and inserted into the order cancellation table
the tag is set to
If it is less than the inventory quantity, decrease the quantity in the inventory table and insert or change it in the sales table
for existing sold products
When a return occurs and an insertion into the returns table is triggered, the cancellation is inserted into the order cancellation table
tag to
the product quantity in the sales table is changed, and the inventory quantity in the inventory table is changed.emp
s
p
sp
partstructurespj
j
Workbench
spsp pppartstructure dept, emp, j spj
Workbench
spje select
parts city parts warehouses locations
city city city, locatio
cityemp
s
p
sp
partstructure
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
