Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need questions 1 and 2 answered free of syntax errors if possible. 1. need a procedure named as GET_CUSTOMER_ADDR to obtain the whole customer address



Need questions 1 and 2 answered free of syntax errors if possible.



1. need a procedure named as "GET_CUSTOMER_ADDR" to obtain the whole customer address including Address, City, State & Zip of the customer whose customerID currently is stored in I_CUST_ID. Place the whole customer address in the variable named I_CUST_ADDR. Output the contents of I_CUST_ADDR.

If the input customerID does not exist in the database, display "No such a customer ID: " followed by the customerID. For example, if you try to get the whole customer address of the customer with customerID "125", the result should be "No such a customer ID: 125"."


2. Run your created procedure "GET_CUSTOMER_ADDR" and get the whole address of the two customers: the first customerID is 120, and the second customerID is 230.


3. need a statement that makes sure any customerID entered in ORDERS table also exists in the CUSTOMERS table.





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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

Will you be able to pay your bills?

Answered: 1 week ago