×

Optimization of SQL queries involving aggregate expressions using a plurality of local and global aggregation operations

  • US 5,884,299 A
  • Filed: 02/06/1997
  • Issued: 03/16/1999
  • Est. Priority Date: 02/06/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of optimizing a query in a computer system, the query being performed by the computer system to retrieve data from a relational database stored in one or more electronic storage devices coupled to the computer system, the method comprising the steps of:

  • (a) examining the query in the computer system to determine whether the query includes one or more aggregation operations on rows of a table in the relational database;

    (b) performing a plurality of local aggregation operations in the computer system, wherein rows of the table are locally aggregated by each of the local aggregation operations to create a plurality of local aggregate result rows; and

    (c) performing a plurality of global aggregation operations in the computer system, wherein the local aggregate result rows created by the local aggregation operations are re-distributed to the plurality of global aggregation operations to be coalesced thereby to create a plurality of global aggregate result rows.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×