QuestionQ184

VerifiedRetrieving Data Using the SQL SELECT Statement

You need to write a query that accepts user input for columns and conditions each time it runs.

The user must be prompted only once for the table input.

Which query produces the required result?

Explanation

A double-ampersand substitution variable defines and retains the table-name value after its initial prompt. Single-ampersand variables are substituted when the statement is executed, so the column and condition inputs can be entered each time the query runs.

Community Discussion

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