The ORDER BY clause allows sorting of query results by one or more columns. Each sort can be ascending (ASC) or descending (DESC). If neither is specified, ASC is assumed.
A simple example
Sorting by more than one column
Using the column position
ORDER BY and NULL
ORDER BY and case sensitivityExplicitly limiting the number of rows returned by a query
ORDER BY and GROUP BY
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |