Skip to content

Commit

Permalink
Update select.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sazar1 authored Mar 6, 2024
1 parent d50f118 commit 17577a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sql_reference/commands/queries/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ When including multiple clauses, the same number of columns must be selected by

The `ORDER BY` clause sorts a result set by one or more output expressions. `ORDER BY` is evaluated as the last step after any `GROUP BY` or `HAVING` clause. `ASC` and `DESC` determine whether results are sorted in ascending or descending order. When the clause contains multiple expressions, the result set is sorted according to the first expression. Then the second expression is applied to rows that have matching values from the first expression, and so on.

NULLS FIRST is the default for DESC order, and NULLS LAST otherwise.
The NULLS FIRST and NULLS LAST options can be used to determine whether nulls appear before or after non-null values in the sort ordering. By default, null values sort as if larger than any non-null value; that is, NULLS FIRST is the default for DESC order, and NULLS LAST is the default for ASC order.

### Syntax
{: .no_toc}
Expand Down

0 comments on commit 17577a9

Please sign in to comment.