diff --git a/docs/sql-ref-syntax-qry-select-groupby.md b/docs/sql-ref-syntax-qry-select-groupby.md index 2d13c34956..e47ca0bf3c 100644 --- a/docs/sql-ref-syntax-qry-select-groupby.md +++ b/docs/sql-ref-syntax-qry-select-groupby.md @@ -44,7 +44,7 @@ GROUP BY [ GROUPING SETS grouping_sets ] group_expression [ , group_expression [ set is specified by a list of comma-separated expressions in parentheses.

Syntax: - (() | (expression [ , ...])) + ( () | ( expression [ , ... ] ) )
grouping_expression
diff --git a/docs/sql-ref-syntax-qry-select-having.md b/docs/sql-ref-syntax-qry-select-having.md index 718c22fd4b..428d8556e7 100644 --- a/docs/sql-ref-syntax-qry-select-having.md +++ b/docs/sql-ref-syntax-qry-select-having.md @@ -20,7 +20,7 @@ license: | --- The HAVING clause is used to filter the results produced by GROUP BY based on the specified condition. It is often used -in the conjunction with a [GROUP BY](sql-ref-syntax-qry-select-groupby.html) +in conjunction with a [GROUP BY](sql-ref-syntax-qry-select-groupby.html) clause. ### Syntax @@ -49,7 +49,7 @@ HAVING boolean_expression ### Examples {% highlight sql %} CREATE TABLE dealer (id INT, city STRING, car_model STRING, quantity INT); -INSERT INTO dealer VALUES (100, 'Fremont', 'Honda Civic', 10), +INSERT INTO dealer VALUES (100, 'Fremont', 'Honda Civic', 10), (100, 'Fremont', 'Honda Accord', 15), (100, 'Fremont', 'Honda CRV', 7), (200, 'Dublin', 'Honda Civic', 20), diff --git a/docs/sql-ref-syntax-qry-select-where.md b/docs/sql-ref-syntax-qry-select-where.md index 2c8d449172..09fab64bbe 100644 --- a/docs/sql-ref-syntax-qry-select-where.md +++ b/docs/sql-ref-syntax-qry-select-where.md @@ -19,7 +19,7 @@ license: | limitations under the License. --- The WHERE clause is used to limit the results of the FROM -clause of query or subquery based on the specified condition. +clause of a query or a subquery based on the specified condition. ### Syntax {% highlight sql %} @@ -62,7 +62,7 @@ SELECT * FROM person WHERE id = 200 OR id = 300 ORDER BY id; |300|Mike|80 | +---+----+----+ --- ISNULL expression in `WHERE` clause. +-- IS NULL expression in `WHERE` clause. SELECT * FROM person WHERE id > 300 OR age IS NULL ORDER BY id; +---+----+----+ |id |name|age |