Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Why are the local variables listed in the argument? b. Following is the procedure to retrieve number of persons, customer number and customer last name

image text in transcribed

Why are the local variables listed in the argument?

b. Following is the procedure to retrieve number of persons, customer number and customer last name for the provided reservation ID as input: CREATE OR REPLACE PROCEDURE CUST_RESER_PROC ( |_RESERVATION_ID IN RESERVATION.RESERVATION_ID%TYPE, L_NUM_PERSONS OUT RESERVATION.NUM_PERSONS%TYPE, |_CUSTOMER_NUM OUT RESERVATION.CUSTOMER_NUM%TYPE, I_LAST_NAME OUT CUSTOMER.LAST_NAME%TYPE) AS BEGIN SELECT R.NUM_PERSONS, R.CUSTOMER_NUM, C.LAST_NAME INTO L_NUM_PERSONS, I_CUSTOMER_NUM, I_LAST_NAME FROM RESERVATION R, CUSTOMER C WHERE R.CUSTOMER_NUM = C.CUSTOMER_NUM AND R. R.RESERVATION_ID = |_ R.RESERVATION_ID; DBMS_OUTPUT.PUT_LINE(I_NUM_PERSONSTI'' ||L_CUSTOMER_NUMI"|| _LAST_NAME; EXCEPTION WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.PUT_LINE('No records found'); 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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

How can a stock split affect the long-term profits of an investor?

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago