Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Define general controls.

Answered: 1 week ago