Order By
Order By is an optional clause that sorts and displays the selected column's data in ascending or descending order for a SELECT statement. For example, you can sort the employee number column of an object in ascending order and salary column in descending order for an employee table.
Follow these steps:
-
Click on the Order By pane.
The Order By section appears. -
Select one or more columns from the Available Columns list.
-
Move the selected columns to the Selected Columns list using Add> button.
-
Arrange the selected columns in an order using the Move up and Move down buttons.
-
Select a column name from the Selected Columns list and select ASC for ascending or DESC for descending order.