Tags: Programming Language.

An ORDER BY clause in SQL specifies that a SQL SELECT statement returns a result set with the rows being sorted by the values of one or more columns. The sort criteria do not have to be included in the result set. The sort criteria can be expressions including – but not limited to – column names user-defined functions arithmetic operations or CASE expressions. The expressions are evaluated and the results are used for the sorting i.e.

Loading...

This page contains content from the copyrighted Wikipedia article "Order by"; that content is used under the GNU Free Documentation License (GFDL). You may redistribute it, verbatim or modified, providing that you comply with the terms of the GFDL.