Question: 6 . Create a Stored Procedure, for the SaleCo 2 database, that will:Delete an Invoice from the Invoice table by accepting the Invoice # as
Create a Stored Procedure, for the SaleCo database, that will:Delete an Invoice from the Invoice table by accepting the Invoice # as a procedure parameter when you CALL the procedure to be executed in the SQL windowtab within phpMyAdmin Delete all associated rows for this Invoice in the Line table. Reduce the Customer balance in the Customer table by the amount of the deleted Invoice.HINT: May be done in one SQL query with subqueries OR using separate queries and maybe a variable In maria db
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
