×

Method of optimizing a query having an existi subquery and a not-exists subquery

  • US 6,529,896 B1
  • Filed: 02/17/2000
  • Issued: 03/04/2003
  • Est. Priority Date: 02/17/2000
  • Status: Expired due to Fees
First Claim
Patent Images

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

  • (a) analyzing the query to determine whether the query includes a WHERE clause which contains an “

    EXISTS”

    subquery or the equivalent and a “

    NOT EXISTS”

    subquery or the equivalent;

    (b) performing a subsumption test to determine whether the subqueries are subsumed or identical;

    (c) if identical, adding a FALSE predicate to the WHERE clause of the query;

    (d) if subsumed and not identical, performing a transformation of the query to merge the subqueries; and

    (e) executing the query in the computer to retrieve data from the relational database.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×