hiexam
oracle · 1z0-144 · Q606 · multiple_choice · topic_1

View the Exhibit and examine the partial data in the PRODUCTS table. PROD_ID is the primary key. //IMG// Examine the f…

View the Exhibit and examine the partial data in the PRODUCTS table. PROD_ID is the primary key. //IMG// Examine the following code: //IMG// What is the outcome on execution of the above code?
  • A.It executes successfully.
  • B.It gives an error because the DECODE function can be used only in a SQL statement.
  • C.It gives an error because the SUBSTR and INSTR functions can be used only in a SQL statement.
  • D.It gives an error because both the MAX and DECODE functions can be used only in a SQL statement.
Explanation
The right answer would be B. It gives an error because the DECODE function can be used only in a SQL statement.

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.