×

Method and apparatus for efficiently evaluating exists and not exists equivalent subqueries

  • US 5,732,258 A
  • Filed: 02/08/1996
  • Issued: 03/24/1998
  • Est. Priority Date: 02/08/1996
  • Status: Expired due to Term
First Claim
Patent Images

1. A computer-implemented method of transforming an EXISTS-equivalent subquery to query components that may be processed more efficiently than the EXISTS-equivalent subquery, the method comprising the steps of:

  • A) removing at least one logical expression from a WHERE clause in said EXISTS-equivalent subquery to produce a revised EXISTS-equivalent subquery;

    B) generating one or more substitute query components by performing the following steps for each of said at least one logical expression removed from said WHERE clause;

    B1) determining whether said logical expression contains a reference to a table in a FROM list of a SELECT statement in said EXISTS-equivalent subquery,B2) determining a substitute query component for said logical expression based ona) whether said logical expression contains a reference to a table in said FROM list of said SELECT statement in said EXISTS-equivalent subquery, andb) whether said EXISTS-equivalent subquery is equivalent to an EXISTS subquery or to a NOT EXISTS subquery; and

    C) replacing the EXISTS-equivalent subquery with said revised EXISTS-equivalent subquery and said one or more substitute query components.

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