What is the outcome?

View the Exhibit and examine the structure of the SALGRADE table.

Examine the following code:

What is the outcome?

View the Exhibit and examine the structure of the SALGRADE table.

Examine the following code:

What is the outcome?

A.
It is created successfully.

B.
It gives an error because the return clause condition is invalid.

C.
It gives an error because the usage of the host variables is invalid.

D.
It gives an error because the data type of the return clause is invalid.

Explanation:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


vishesh bansal

vishesh bansal

c
bind variables are not used correctly..

Leonid

Leonid

the answer is C

sqlplus output:

SQL> show errors
Errors for FUNCTION SAL_OK:

LINE/COL ERROR
——– —————————————
4/26 PLS-00049: bad bind variable ‘MIN_SAL’
4/36 PLS-00049: bad bind variable ‘MAX_SAL’

samkelo siyabonga ngubo

samkelo siyabonga ngubo

The answer is c
Error(4,53): PLS-00049: bad bind variable ‘MAX_SAL’

samkelo siyabonga ngubo

samkelo siyabonga ngubo

C