Question: Write a procedure named PRC_ADD_INVOICE to add a new invoice record to the INVOICE table. The procedure will take four IN arguments which are values

Write a procedure named PRC_ADD_INVOICE to add a new invoice record to the INVOICE table. The procedure will take four IN arguments which are values of the four columns of the INVOICE table for the new invoice to be added. Test the procedure to demonstrate it works by executing it to add the following new invoice. \[ \begin{array}{l} \text { INV_NUM }=8006 \\ \text { CUST_NUM }=1002 \\ \text { INV_DATE }=29-A p r-2016 \\ \text { INV_AMOUNT }=175.85 \end{array} \] As your answer to this question, please provide your code to create the procedure and a screenshot of your ORACLE SQL screen showing it works when it is executed with the results of SELECT * FROM CUSTOMER and SELECT * FROM INVOICE before and after its successful execution. \[ \begin{array}{l} \text { SELECT * FROM CUSTOMER; } \\ \text { SELECT * FROM INVOICE; } \\ \text { EXEC PRC_ADD_INVOICE. . . . ); } \\ \text { SELECT * FROM INVOICE; } \\ \text { SELECT * FROM CUSTOMER; } \end{array} \] Please DO NOT FORGET to include the results of SELECT * FROM CUSTOMER as well before and after executing the procedure to add the new invoice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
