Question: Write MySQL , PL / SQL , or T - SQL procedures to accomplish the following task: a . Obtain the name and credit limit

Write MySQL, PL/SQL, or T-SQL procedures to accomplish the following task:
a. Obtain the name and credit limit of the customer whose ID is currently stored in I_CUST_ID. Place these values in the variables I_CUSTOMER_NAME and I_CREDIT_LIMIT, respectively. Output the contents of I_CUSTOMER_NAME and I_CREDIT_LIMIT.
b. Obtain the invoice date, customer ID, and first and last names for the invoice whose number currently is stored in I_INVOICE_NUM. Place these values in the variables I_INVOICE_DATE, I_CUST_ID, and I_CUST_NAME, respectively. Output the contents of I_INVOICE_DATE, I_CUST_ID, and I_CUST_NAME.
c. Add a row to the INVOICE table.
d. Change the date of the invoice whose number is stored in I_INVOICE_NUM to the date currently found in I_INVOICE_DATE.
e. Delete the invoice whose number is stored in I_INVOICE_NUM.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!