×

Query optimization through the use of multi-column statistics to avoid the problems of column correlation

  • US 5,995,957 A
  • Filed: 02/28/1997
  • Issued: 11/30/1999
  • Est. Priority Date: 02/28/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method, for use in a database management system for optimizing a query, the method comprising:

  • collecting at least one type of multi-column statistic to reflect a relationship among multiple selected columns of a table; and

    storing the at least one type of multi-column statistic in a table for subsequent use in determining a selectivity value (a number of qualified rows) for predicates in the query, wherein the selectivity value is used in optimizing execution of the query;

    wherein the step of collecting at least one type of multi-column statistic further comprises collecting a first type of multi-column quantile statistics for indicating a number of rows between two given values by dividing the data into a plurality of sub-ranges, each sub-range having an even distribution of data; and

    determining a frequency and cardinality of each sub-range.

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