OLAP rules and restrictions

OLAP functions can be used

Within SQL queries, OLAP functions can be used:

OLAP functions cannot be used

OLAP functions cannot be used under these conditions:

Columns referenced by an OLAP function must be grouping columns or aggregate functions from the same query block in which the OLAP function and the GROUP BY clause appear. OLAP processing occurs after the grouping and aggregation operations and before the final ORDER BY clause is applied; therefore, it must be possible to derive the OLAP expressions from those intermediate results. If there is no GROUP BY clause in a query block, OLAP functions can reference other columns in the select list.

Sybase IQ limitations

The Sybase IQ limitations with SQL OLAP functions are: