Skip to content

Commit 4359c57

Browse files
author
Lauren
authored
Merge pull request #2378 from basho/lr-privportts
Port private_docs PR #299
2 parents 936d929 + 678b608 commit 4359c57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/riak/ts/1.5.0/using/querying/select/order-by.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Sort results in ascending order. This is the default if no order is specified.
4848

4949
`NULLS LAST` is the default when `ASC` is specified or implied.
5050

51+
{{% note title="Relationship of ASC/DESC qualifiers in `ORDER BY` vs DDL" %}}
52+
A DESC qualifier (express or implied) used in the DDL has no effect on the sorting order applied during `ORDER BY`. That is, given a DDL where column X appears in the primary key definition with a DESC qualifier, a `SELECT .. ORDER BY _X_` (where `ASC` is implied) will still have X ASC-ordered.
53+
{{% /note %}}
54+
5155
[Example](#ascending)
5256

5357
#### `DESC`

0 commit comments

Comments
 (0)