Professional Documents
Culture Documents
Bsit501
The result set of a query known as a Common Table Expression (CTE) lives just momentarily and is
intended to be used in conjunction with a bigger query. Similar to a derived table, a CTE's result is not
saved and exists only while the query is running. The focus of this post will be CTEs that don't occur
again. Start a CTE by using "WITH."
AS
<cte_query_definition>
<operation>