Question: Use MyGuitarShop DB: Create a stored procedure called spFinal that given a ProductID does the following: 1 . If the Product doesn t exist, display

Use MyGuitarShop DB:
Create a stored procedure called spFinal that given a ProductID does the following:
1. If the Product doesnt exist, display a mesage. e.g. "Product doesn't exist" 2. If the Product hasnt been ordered display a message e.g.There are no orders for ibanez.3. Otherwise, return all the orders for that product and display a message saying how many units of that product have been sold.4. Return the number of units sold for that product as an output parameter.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!