Skip to main content
Creates an aggregating index: a precomputed, automatically maintained rollup of a GROUP BY with aggregate functions. The optimizer substitutes it for the base-table scan when a query’s grouping structure matches. This page is the syntax reference. For how the index is maintained, the rule that a query must group by or filter on the leading grouping column, tuning, and limitations, see Aggregating index.

Syntax

Parameters

Example

See also