Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ok it has to be in Oracle. i tried to do part A on my own but I keep getting errors below is a screenshot

image text in transcribed

image text in transcribed

ok it has to be in Oracle. i tried to do part A on my own but I keep getting errors below is a screenshot of what I tried. if the rest of the parts are answered even better

thank you

5. Write MySQL, PL/SQL, or T-SQL procedures to accomplish the following tasks: a. Obtain the name and credit limit of the customer whose ID currently is stored in I_CUSTIID. Place these values in the variables L_CUSTOMER_NAME and L_CREDIT_MMIT, respectively. Output the contents of L_CUSTOMER_NAME and L_CREDIT_LIMIT b. Obtain the invoice date, customer ID, and first and last names for the invoice whose number currently is stored in L_INVOICE_NUM. Place these values in the variables I_INVOICE_DATE, I_CUST_ID, and 1_CUST_NAME, respectively. Output the contents of _INVOICE_DATE, I_CUST_ID, and LCUST_NAME. c. Add a row to the INvoice table. d. Change the date of the invoice whose number is stored in L_INVOICE_NUM to the date currently found in I_INVOICE_DATE. e. Delete the invoice whose number is stored in I_INVOICE_NUM. CREATE PROCEDURE GET_CREDIT_LIMITHW ( I_CUST_ID IN CHAR(3)) IS BEGIN SELECT CONCAT(FIRST_NAME, ', ,LAST_NAME) AS I_CUSTOMER_NAME, CREDIT_LIMIT AS I_CREDIT_LIMIT FROM CUSTOMER WHERE CUST_ID = I_CUST_ID; END

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_2

Step: 3

blur-text-image_3

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

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

More Books

Students also viewed these Databases questions