Skip to content

Commit a2acad0

Browse files
authored
Merge pull request #626 from anhqle/doc-tutorial
DOC fix typo
2 parents 46c90d1 + c496d5d commit a2acad0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ An alias for the table can be given using the ``.as_`` function on ``pypika.Tabl
104104

105105
.. code-block:: sql
106106
107-
Table('x_view_customers').as_('customers')
107+
customers = Table('x_view_customers').as_('customers')
108108
q = Query.from_(customers).select(customers.id, customers.phone)
109109
110110
.. code-block:: sql
@@ -510,9 +510,9 @@ Example of a correlated subquery in the `SELECT`
510510
Unions
511511
""""""
512512

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
514514
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.
516516

517517
To create a union query, use either the ``Query.union()`` method or `+` operator with two query instances. For a
518518
union all, use ``Query.union_all()`` or the `*` operator.
@@ -534,7 +534,7 @@ Intersect
534534
"""""""""
535535

536536
``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.
538538

539539
To create a intersect query, use the ``Query.intersect()`` method.
540540

@@ -557,7 +557,7 @@ Minus
557557
"""""
558558

559559
``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.
561561

562562
To create a minus query, use either the ``Query.minus()`` method or `-` operator with two query instances.
563563

@@ -588,7 +588,7 @@ EXCEPT
588588
""""""
589589

590590
``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.
592592

593593
To create a except query, use the ``Query.except_of()`` method.
594594

0 commit comments

Comments
 (0)