ORDERING OF THE QUERY RESULT
The ORDER BY clause is used to force the query result to be sorted based on one or more column values. You can select either ascending or descending sort for each named column.
1. Example 1
List the names and IDs of all faculty members arranged in alphabetical order. SELECT FACID, FACNAME FROM FACULTY ORDER BY FACNAME;| FACID | FACNAME |
| F101 | Adams |
| F110 | Byrne |
| F221 | Smith |
| F202 | Smith |
| F105 | Tanaka |
Komentar 0