Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the required tables and triggers for the following Product re - order tracking database. a . Create a table Product - details with Pname,
Create the required tables and triggers for the following Product reorder tracking database.
a Create a table Productdetails with Pname, Pid, Available quantity, Rate. mark
b Create a table Reorder with attributes Pid, AvailQty mark
c Create Trigger which inserts the Pid and Available quantity in the Reorder table as soon as available quantity of a product reduces to less tha
in the Product table. marks
d Create a table Total Stock with attributes Pid, Avlqty and rate. mark
eCreate trigger that updates the total amount in stock in the TotalStock table when new product details are inserted in the product tabi marks
f Insert required data in the Product table. mark
g Give the sample input and the contents of the tables to show the effect of the triggers. mark
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