Which set of commands will prompt only once for the name of the table to use in the query?
Which set of commands will prompt only once for the name of the table to use in the query?
To prompt only once for the name of the table, the correct approach is to use a double ampersand (&&) before the variable name in the SELECT statement line. The correct set of commands uses 'PROMPT Enter table name &&x - SELECT employee_id FROM &x WHERE last_name = ‘King’;', ensuring that '&x' takes the value entered only once and prevents repeated prompts. Other options either do not prompt or prompt multiple times.
Tested D.
C prompted twice, while D prompted only once.
C is correct
C is the right answer tested
D, && performs an implicit DEFINE while & doesn't I thought & always prompts, even if there was && before it, but this question just made me realize this, as all other answers are wrong, including C.
D is correct
Test results: A and C: prompted twice B: did not prompt D: prompted once the first time and then no prompt on rerun Best answer: D
C is correct
Correct C
D is correct. B will never show a prompt window.
if you re run D it we will always prompt you to enter a value with C only once will prompt you