Question 170
A quarterly sales report requires a temporary named query used just once in the statement. Which acceptance check should accompany the remediation?
Explanation
Correct Answer
A CTE is a named subquery scoped to a single following DML statement, not an automatic materialized table. The observation “The following SELECT references the CTE and returns the same rows without persistent objects” directly confirms the chosen action worked for this situation: A quarterly sales report requires a temporary named query used just once in the statement.
Incorrect Answers
JSON construction functions handle quoting/escaping rather than brittle string assembly. This observation would not establish that the required result occurred for A quarterly sales report requires a temporary named query used just once in the statement. The confirming test is: The following SELECT references the CTE and returns the same rows without persistent objects.
Recursive CTEs repeatedly apply the recursive member and require attention to cycles and MAXRECURSION. This observation would not establish that the required result occurred for A quarterly sales report requires a temporary named query used just once in the statement. The confirming test is: The following SELECT references the CTE and returns the same rows without persistent objects.
Data type and collation selection determine representability, comparisons, and index behavior. This observation would not establish that the required result occurred for A quarterly sales report requires a temporary named query used just once in the statement. The confirming test is: The following SELECT references the CTE and returns the same rows without persistent objects.