Available Columns
This box lists all the tables you chose for your query, and the columns in each table. It also lists any computed columns
that you defined in the Columns tab.
ORDER BY Columns
This box stores the columns you chose to sort on. To sort on a column, select a column or set of columns in the Available Columns box and click the Right Arrow. To delete a column, select it in the ORDER BY Columns box and click the Left Arrow. Use the Up and Down Arrows to specify the order of column evaluation. You can sort on column
aliases.
Add A Computed Column
Click the Add A Computed Column icon, located between the Right and Left Arrows, to open the Expression Editor and build your ORDER BY condition.
Results
Click Results at the bottom of the window to see the results of your query, or an error message if the query contains errors.
SQL
Click SQL at the bottom of the window to see the SQL statements for your query.
Each item in the ORDER BY Columns box can be labeled as an Up Arrow for ascending order (the default) or a Down Arrow for descending order. To change the order
from ascending to descending, click the Arrow button to the left of the item.
The only way to ensure that rows are returned in a particular order is to use ORDER BY. In the absence of an ORDER BY clause,
SQL Anywhere returns rows in whatever order is most efficient. The appearance of result sets may vary depending on when you
last accessed the row and other factors.