Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions