HELP IN DATABASE THIS DID NOT WORK CREATE OR REPLACE PROCEDURE PRC_INV_DELETE (W_IN IN NUMBER) ASBEGINIF W_IN IS NOT NULL THENDELETE FROM INVOICE WHERE INV_NUM = W_IN;END IF;END; Problem 30 Write a...


HELP IN DATABASE



THIS DID NOT WORK


CREATE OR REPLACE PROCEDURE PRC_INV_DELETE (W_IN IN NUMBER) AS
BEGIN
IF W_IN IS NOT NULL THEN
DELETE FROM INVOICE WHERE INV_NUM = W_IN;
END IF;
END;


Problem 30<br>Write a procedure to delete an invoice, giving the invoice<br>number as a parameter. Name the procedure prc_inv_delete<br>Test the procedure by deleting invoices 9000 and 9001<br>TASK<br>

Extracted text: Problem 30 Write a procedure to delete an invoice, giving the invoice number as a parameter. Name the procedure prc_inv_delete Test the procedure by deleting invoices 9000 and 9001 TASK
FIGURE P8.16 CH08_SIMPLECO DATABASE TABLES<br>Database name: Ch08_SimpleCo<br>Table name: CUSTOMER<br>Table name: INVOICE<br>CUST NUM CUST LNAME CUST FNAME CUST BALANCE<br>INV NUM CUST_NUM INV DATE INV AMOUNT<br>1000 Smith<br>Jeanne<br>1050.11<br>8000<br>1000<br>23-Mar-16<br>235.89<br>1001 Ortega<br>Juan<br>840.92<br>8001<br>1001<br>23-Mar-16<br>312.82<br>8002<br>528.10<br>1001<br>30-Mar-16<br>1000<br>8003<br>12-Apr-16<br>194.78<br>8004<br>23-Apr-16<br>1000<br>619.44<br>

Extracted text: FIGURE P8.16 CH08_SIMPLECO DATABASE TABLES Database name: Ch08_SimpleCo Table name: CUSTOMER Table name: INVOICE CUST NUM CUST LNAME CUST FNAME CUST BALANCE INV NUM CUST_NUM INV DATE INV AMOUNT 1000 Smith Jeanne 1050.11 8000 1000 23-Mar-16 235.89 1001 Ortega Juan 840.92 8001 1001 23-Mar-16 312.82 8002 528.10 1001 30-Mar-16 1000 8003 12-Apr-16 194.78 8004 23-Apr-16 1000 619.44

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here