nerdexam
Oracle

1Z0-082 · Question #63

You want to write a query that prompts for two column names and the WHERE condition each time it is executed in a session but only prompts for the table name the first time it is executed. The…

The correct answer is B. SELECT &col1, &col2. See the full explanation below for the reasoning.

SQL and PL/SQL

Question

You want to write a query that prompts for two column names and the WHERE condition each time it is executed in a session but only prompts for the table name the first time it is executed. The variables used in your query are never undefined in your session. Which query can be used?

Options

  • ASELECT &&col1, &&col2
  • BSELECT &col1, &col2
  • CSELECT &col1, &col2
  • DSELECT &&col1', &&col2'
  • ESELECT &&col1, &&col2

How the community answered

(40 responses)
  • A
    8% (3)
  • B
    83% (33)
  • C
    5% (2)
  • D
    3% (1)
  • E
    3% (1)

Topics

#substitution variables#&&#& single ampersand#SQL*Plus prompting

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice