Multiple choice technology databases

Choose the correct option:

  1. A CTE is created using the WITH statement

  2. A CTE is created using the SELECT statement

  3. A CTE is created using the CREATE statement

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A Common Table Expression (CTE) is defined using the WITH clause followed by the CTE name and its query. The WITH statement initiates a temporary named result set that can be referenced within a SELECT, INSERT, UPDATE, or DELETE statement. CTEs are not created with SELECT or CREATE keywords.