Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

oracle sql devloper Write a function invoiceCheck with one input parameter (invoice number) to check if the invoice exists in your database. Write a procedure

oracle sql devloper

image text in transcribed

Write a function invoiceCheck with one input parameter (invoice number) to check if the invoice exists in your database.

Write a procedure InvoiceDetail with one input parameter (invoice number). In the procedure, call the function invoiceCheck to check if the invoice exists, if yes, display the invoice_id, invoice_total and invoice_due_date for that invoice. If not, print out a message invoice not in the database from your procedure. (submit the code & screenshot of the result set for each test case)

NULLABLE DATA DEFAULTCOLUMN ID COMMENTS 1 (nul1) 2 (nul1) 3 (nul1) 4 (null) 5 (nul1) 6 (null) 7 (nul1) 8 (null) 9 (null) 10 (null) COLUMN NAME 1 INVOICE ID 2 VENDOR ID DATA TYPE NUMBER NUMBER 4 INVOICE DATE 5 INVOICE TOTAL NUMBER (9,2) 6 PAYMENT TOTALNUMBER (9,2) 7 CREDIT TOTAL 8 TERMS ID 9 INVOICE DUE DATE DATE 10 PAYMENT DATE No No 3 INVOICE NUMBER VARCHAR2 (50 BYTE) No No No No No No No (null) (null) (null) (null) (null) (null) (null) (null) (null) Yes (null) DATE NUMBER (9, 2) NUMBER DATE

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

4. Show the trainees how to do it again.

Answered: 1 week ago