5.16 Sorting Results
Data obtained from a select construct may be sorted on one or several columns
using the order by clause. This clause also gives the user the possibility of
opting for an ascending or descending sorting order on each of the columns. By
default, the ascending order is chosen.
Example 5.16.1 Suppose that we need to sort the GRADES tuples on the
student number. For each student, we sort the grades in descending order. This
can be done with the query: