×

Rewriting a query in terms of a summary based on aggregate computability and canonical format, and when a dimension table is on the child side of an outer join

  • US 5,991,754 A
  • Filed: 12/28/1998
  • Issued: 11/23/1999
  • Est. Priority Date: 12/28/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for processing queries, the method comprising the steps of:

  • receiving a query that does not reference a particular materialized view;

    said query specifying a first set of one or more aggregate functions;

    said particular materialized view reflecting a second set of one or more aggregate functions;

    determining whether the particular materialized view satisfies each condition in a set of conditions, the set of conditions at least including;

    that each aggregate function in said first set of aggregate functions be computable from one or more corresponding aggregate functions in said second set of aggregate functions; and

    that the argument to each aggregate function in said first set of aggregate functions be equivalent to the argument of the one or more corresponding aggregate functions in said second set of aggregate functions;

    wherein said first set of aggregate functions includes a particular aggregation function to be applied to a target population, wherein said particular aggregation function is an aggregation function from a set of aggregation functions that consists of variance and standard deviation;

    testing whether each aggregate function in said first set of aggregate functions is computable from one or more corresponding aggregate functions in said second set of aggregate functions, wherein said testing includes determining whether the particular materialized view includes a variance, sum, and count of a source population on which the target population is functionally dependent; and

    if said materialized view satisfies each condition in said set of conditions, then rewriting said query to produce a rewritten query that references said materialized view and derives said results of said particular aggregation function for said target population from the variance, sum, and count of said source population.

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