Ordering the Display of Tuples



next up previous
Next: Aggregate Operations Up: Query-by-Example (QBE) Previous: The Result Relation

Ordering the Display of Tuples

  1. The order in which tuples are displayed can be controlled by adding the command AO. (ascending order) or DO. (descending order) to the print command:

  2. To sort first by name, and then by balance for those with multiple accounts:



Page created and maintained by Osmar R. Zaï ane
Last Update: Mon Oct 16 16:41:58 PDT 1995