ORDER BY sort_expression [DESC | ASC] [,...]is either the name of a column, a column alias, a SQL expression, or the positioned number of the column or expression in the select list to use.The default behavior is an ascending (ASC) sort.To sort by last_name and then by first_name, you could use either of the following Select statements:In the second example, last_name is the second item in the Select list, so ORDER BY 2,3 sorts by last_name and then by first_name.
| © 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |