After you have created statements, you can test them, refine them, and order or sort the data that is returned by executing them. See the following for detailed information:
Executing Statements
Refining SQL SELECT Statements
Ordering and Sorting Returned Data