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 than 50 in the Product table. 2 marks
d.Create a table Total_Stock with attributes Pid, Avl qqty 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 tabl 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
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

Define the strategic approach to finan- cial planning.

Answered: 1 week ago