Q114 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?
- (A). SELECT &&col1, &&col2 FROM &table WHERE &&condition = &&cond;
- (B). SELECT &col1, &col2 FROM &&table WHERE &condition;
- (C). SELECT &col1, &col2 FROM “&table” WHERE &condition;
- (D). SELECT ‘&&col1’, ‘&&col2’ FROM &table WHERE ‘&&condition’ = ‘&cond’;
- (E). SELECT &&col1, &&col2 FROM &table WHERE &&condition;
Answer: B