Examples |
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 View Order By.
Order By 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 to change the ordering sequence.
Select Salary and JOBCODE, and move them to the Order By Columns list.Move Columns |
Select Salary ASC from the Order By Columns list and select . The Move Columns window appears.
Select BEGDATE and . The ORDER BY COLUMNS window appears with Salary first in the Order By Columns list.
Select
to return to the SQL QUERY COLUMNS window.Select View Where Conditions for Subset.
The WHERE EXPRESSION window appears. Select SALARY LT $18,000 is displayed.
four times, until onlySelect
.Viewing Your Output |
To run your query and view the output in the Output window, select Tools Run Query Run Immediate.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.