IBM Books

GRPBY

For the GRPBY operator, the following input arguments are shown:

Group by requirement
The columns on which groups are to be formed.

Group by columns
A flag that is true if there are any columns on which groups are to be formed.

If no GROUP BY columns are specified, the GRPBY operator will still be used if there are aggregation functions in the SELECT list, indicating that the entire table is treated as a single group when that aggregation is done.

One fetch
A flag that is true if only one row is needed as input to the aggregation, because the column function is either MIN(C) or MAX(C) and the input is ordered correctly on column C.

Number of comparison columns
The number of columns needed to determine group breaks.

Aggregation mode
The group by operation may be divided into multiple steps. The aggregation mode describes the level of aggregation performed at each step:

[ Top of Page | Table of Contents | Glossary | Index ]

[ DB2 List of Books | Search the DB2 Books ]