You can specify the
order in which you want the output sorted. In this example, you use
the query from the last example and change the ordering sequence of
the columns in the Output window. From the SQL QUERY COLUMNS window,
select
ViewOrder
By.
displays all columns
in the Order By Columns list except the currently chosen one. The
currently chosen column will be inserted before the column that you
select.
displays all the columns
in the Order By Columns list except the currently chosen one. The
currently chosen column will be inserted following the column that
you select.
changes the ordering
sequence of the selected column's values to ascending (lowest value
to highest value).
changes the ordering
sequence of the selected column's values to descending.
displays the Build a Column Expression
window, which enables you to create a calculated column for use in
sorting your output. Use the Build a Column Expression window to create
new columns by performing calculations on existing (numeric) columns.
Select
BEGDATE from the Available Columns list. Select the
right arrow to move the column to the Order By Columns list. By default,
columns are sorted in ascending order, so the abbreviation ASC appears
next to the column name in the Order By Columns list. Select
BEGDATE ASC and
Descending Order to change the ordering sequence.
Select
Salary and
JOBCODE, and move
them to the Order By Columns list.