×

Techniques of optimizing queries using NULL expression analysis

  • US 20080065674A1
  • Filed: 09/08/2006
  • Published: 03/13/2008
  • Est. Priority Date: 09/08/2006
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing queries comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:

  • A) sending the instructions over transmission media;

    B) receiving the instructions over transmission media;

    C) storing the instructions onto a machine-readable storage medium; and

    D) executing the instructions;

    wherein the instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of;

    receiving a query that specifies a target set of data, wherein the query includes a count operator that is to be performed over a first set of values;

    wherein the count operator specifies a first expression which, when evaluated over the target set of data, would generate the first set of values;

    generating a first representation of the query, wherein the first representation indicates that the count operator is to be performed based on the first expression;

    determining a second expression based at least on the first expression, wherein the second expression is such that the first expression would evaluate to any NOT NULL value if and only if the second expression would evaluate to any NOT NULL value; and

    based on the first representation, generating a second representation of the query which indicates that the count operator is to be performed based on the second expression.

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