Peter Geoghegan, reviewed by Stephen Frost
+
+
+ Common Table Expression
+
+
+
+
-
WITH Queries
+
WITH Queries (Common Table Expressions)
WITH> provides a way to write subqueries for use in a larger
- query. The subqueries can be thought of as defining
+ query. The subqueries, which are often referred to as Common Table
+ Expressions or
CTEs, can be thought of as defining
temporary tables that exist just for this query. One use of this feature
is to break down complicated queries into simpler parts. An example is: