QuestionQ15

VerifiedPL/SQL Language Fundamentals

Examine the following table in the SH schema:

Question Image

Now examine this code:

Question Image

Which two changes are necessary to ensure that PDT_REPORT executes successfully?

Choose two
Explanation

An explicit cursor’s formal parameters always have the characteristics of IN parameters, so CUR_PRICE cannot use IN OUT mode. P_PDT_PRICE is used only to supply the price threshold to the cursor and is not updated for the caller; it should therefore be declared as an IN parameter. CUR_PRICE is valid within the cursor query, and the cursor invocation already supplies its required actual parameter.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!