You are on page 1of 1

PURIHIN, DANN KERVIN M.

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."

TABLE NAME: ORDERS

SQL STATEMENT OF WITH OPERATOR:

BASIC SYNTAX OF WITH OPERATOR:

WITH <common_table_expression> ([column names])

AS

<cte_query_definition>

<operation>

You might also like