Patent Document ID: 20090083253
Application ID: 11862158
Patent Flag: 0

Claim One:
1. A method comprising: generating two or more different first phase grouping column sets based at least in part on grouping keys that are specified in a first rollup operator of the two or more rollup operators that are included in a database query; based on the two or more first phase grouping column sets, generating a plurality of first phase groups of records; generating a separate first phase rollup result record for each first phase group of records of the plurality of first phase groups of records; generating, in a manner that avoids duplicating any of the first phase grouping column sets, two or more different second phase grouping column sets based at least in part on grouping keys that are specified in a second rollup operator of the two or more rollup operators; based on the two or more second phase grouping column sets, generating a plurality of second phase groups of records; and generating a separate second phase rollup result record for each second phase group of records of the plurality of second phase groups of records.