Skip to content

Commit

Permalink
clean up the orderby_item rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Mar 26, 2024
1 parent 48c0950 commit e99280b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions spec/src/main/asciidoc/ch04-query-language.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3038,10 +3038,12 @@ The syntax of the ORDER BY clause is:

----
orderby_clause ::= ORDER BY orderby_item {, orderby_item}*
orderby_item ::=
{state_field_path_expression | general_identification_variable | result_variable | scalar_expression}
[ASC | DESC]
[NULLS {FIRST | LAST}]
orderby_item ::= orderby_expression [ASC | DESC] [NULLS {FIRST | LAST}]
orderby_expression ::=
state_field_path_expression |
general_identification_variable |
result_variable |
scalar_expression
----

The ORDER BY clause specifies a list of items. Each `orderby_item` must be
Expand Down Expand Up @@ -3336,10 +3338,12 @@ groupby_clause ::= GROUP BY groupby_item {, groupby_item}*
groupby_item ::= single_valued_path_expression | identification_variable
having_clause ::= HAVING conditional_expression
orderby_clause ::= ORDER BY orderby_item {, orderby_item}*
orderby_item ::=
{state_field_path_expression | general_identification_variable | result_variable | scalar_expression}
[ASC | DESC]
[NULLS {FIRST | LAST}]
orderby_item ::= orderby_expression [ASC | DESC] [NULLS {FIRST | LAST}]
orderby_expression ::=
state_field_path_expression |
general_identification_variable |
result_variable |
scalar_expression
subquery ::= simple_select_clause subquery_from_clause [where_clause]
[groupby_clause] [having_clause]
subquery_from_clause ::=
Expand Down

0 comments on commit e99280b

Please sign in to comment.