Answered step by step
Verified Expert Solution
Link Copied!

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 re-order tracking database.
a. Create a table Product-details with Pname, Pid, Available quantity, Rate. 1 mark
b. Create a table Re-order with attributes Pid, Avail_Qty.1 mark
c. Create Trigger which inserts the Pid and Available quantity in the Re-order table as soon as available quantity of a product reduces to less tha
50 in the Product table. 2 marks
d. Create a table Total Stock with attributes Pid, Avl_qty and rate. 1 mark
e.Create trigger that updates the total amount in stock in the Total_Stock table when new product details are inserted in the product tabi 2 marks
f. Insert required data in the Product table. 1 mark
g. Give the sample input and the contents of the tables to show the effect of the triggers. 2 mark

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions