Skip to content

Commit bb33132

Browse files
authored
Link to Common Table Expressions Wikipedia Article
1 parent 2727c85 commit bb33132

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

en/orm/query-builder.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,10 +1856,11 @@ named windows using the ``window()`` method::
18561856
Common Table Expressions
18571857
------------------------
18581858

1859-
Common Table Expressions or CTE are useful when building reporting queries where
1860-
you need to compose the results of several smaller query results together. They
1861-
can serve a similar purpose to database views or subquery results. Common Table
1862-
Expressions differ from derived tables and views in a couple ways:
1859+
`Common Table Expressions or CTE <https://en.wikipedia.org/wiki/Hierarchical_and_recursive_queries_in_SQL#Common_table_expression>`__
1860+
are useful when building reporting queries where you need to compose the results
1861+
of several smaller query results together. They can serve a similar purpose
1862+
to database views or subquery results. Common Table Expressions differ from
1863+
derived tables and views in a couple ways:
18631864

18641865
#. Unlike views, you don't have to maintain schema for common table expressions.
18651866
The schema is implicitly based on the result set of the table expression.

0 commit comments

Comments
 (0)