SQL Practice Test
SQL - Structured Query Language Common Table Expressions (CTEs) Questions and Answers
Which of the following best describes the scope and purpose of a Common Table Expression (CTE)?
Select your answer
A
A temporary, named result set stored in memory or on disk that persists for the entire user session.
B
A permanent database object, similar to a view, that is used to simplify complex queries.
C
A named temporary result set that exists only for the duration of a single SQL statement (SELECT, INSERT, UPDATE, or DELETE).
D
A special type of subquery that can only be used in the WHERE clause to filter results.
Hint