The following rules apply to OQL statements:
The following example illustrates how one might retrieve the CPU-speed of all PCs with more than 64MB of RAM from a fictional PC database:
The following example illustrates how one might retrieve the average amount of RAM on a PC, grouped by manufacturer:
Note the use of the keyword partition, as opposed to aggregation in traditional SQL.