QuestionQ62

VerifiedPL/SQL Language Fundamentals

Examine the structure of the EMPLOYEES table:

Question Image

Next, examine this code:

Question Image

Which statement is true about the result of executing this block?

Explanation

employees.first_name%TYPE validly anchors a variable to the FIRST_NAME column type, and first_name%TYPE can validly anchor v_name to the already declared first_name variable. The SELECT INTO statement also legally assigns the selected first name to the declared first_name variable. v_salary is declared as NUMBER(5), so it can hold a salary up to 99999; a higher value exceeds its precision and raises a numeric-value error.

Community Discussion

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