@@ -104,7 +104,7 @@ An alias for the table can be given using the ``.as_`` function on ``pypika.Tabl
104
104
105
105
.. code-block :: sql
106
106
107
- Table('x_view_customers').as_('customers')
107
+ customers = Table('x_view_customers').as_('customers')
108
108
q = Query.from_(customers).select(customers.id, customers.phone)
109
109
110
110
.. code-block :: sql
@@ -510,9 +510,9 @@ Example of a correlated subquery in the `SELECT`
510
510
Unions
511
511
""""""
512
512
513
- Both ``UNION `` and ``UNION ALL `` are supported. ``UNION DISTINCT `` is synonomous with "UNION`` so and |Brand | does not
513
+ Both ``UNION `` and ``UNION ALL `` are supported. ``UNION DISTINCT `` is synonomous with "UNION`` so |Brand | does not
514
514
provide a separate function for it. Unions require that queries have the same number of ``SELECT `` clauses so
515
- trying to cast a unioned query to string with through a ``SetOperationException `` if the column sizes are mismatched.
515
+ trying to cast a unioned query to string will throw a ``SetOperationException `` if the column sizes are mismatched.
516
516
517
517
To create a union query, use either the ``Query.union() `` method or `+ ` operator with two query instances. For a
518
518
union all, use ``Query.union_all() `` or the `* ` operator.
@@ -534,7 +534,7 @@ Intersect
534
534
"""""""""
535
535
536
536
``INTERSECT `` is supported. Intersects require that queries have the same number of ``SELECT `` clauses so
537
- trying to cast a intersected query to string with through a ``SetOperationException `` if the column sizes are mismatched.
537
+ trying to cast a intersected query to string will throw a ``SetOperationException `` if the column sizes are mismatched.
538
538
539
539
To create a intersect query, use the ``Query.intersect() `` method.
540
540
@@ -557,7 +557,7 @@ Minus
557
557
"""""
558
558
559
559
``MINUS `` is supported. Minus require that queries have the same number of ``SELECT `` clauses so
560
- trying to cast a minus query to string with through a ``SetOperationException `` if the column sizes are mismatched.
560
+ trying to cast a minus query to string will throw a ``SetOperationException `` if the column sizes are mismatched.
561
561
562
562
To create a minus query, use either the ``Query.minus() `` method or `- ` operator with two query instances.
563
563
@@ -588,7 +588,7 @@ EXCEPT
588
588
""""""
589
589
590
590
``EXCEPT `` is supported. Minus require that queries have the same number of ``SELECT `` clauses so
591
- trying to cast a except query to string with through a ``SetOperationException `` if the column sizes are mismatched.
591
+ trying to cast a except query to string will throw a ``SetOperationException `` if the column sizes are mismatched.
592
592
593
593
To create a except query, use the ``Query.except_of() `` method.
594
594
0 commit comments