Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please provide witj screenshots of the code, using sql : Customer customer ( cno , cname, mileage ) #customer number, customer name, mileage Supplier s
please provide witj screenshots of the code, using sql :
Customer customercno cname, mileage #customer number, customer name, mileage
Supplier ssno sname, city #Supplier number, supplier name, supplier city
Production product ppno pname, price # product number, product name, weight
Supplied product productsno pno, qty #Supplier number, product number, supply quantity
Stock stockpno stqty # product number, stock quantity
Order orderono cno, pno, oqty # order number, customer number, product number, order quantity
Sale salepno sqty # Order number, product number, sales volume
Return returnedono pno # Order number, Product number
Order Cancel orderCancelono 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.
j
Workbench
spsp pppartstructure dept, emp, j spj
Workbench
spje select
parts city parts warehouses locations
city city city, locatio
city
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started