×

Enumerating projections in SQL queries containing outer and full outer joins in the presence of inner joins

  • US 5,687,362 A
  • Filed: 01/30/1995
  • Issued: 11/11/1997
  • Est. Priority Date: 01/30/1995
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of optimizing an SQL query in a computer having a memory, the SQL query being used by the computer to direct information retrieval from a relational database stored in an electronic storage device, the method comprising the steps of:

  • (a) generating an expression tree for the query in the memory of the computer, wherein the query comprises at least one outer join;

    (b) removing projection operations from the expression tree in the memory of the computer by moving the projection operations to a top node of the expression tree;

    (c) generating projection sets and required sets for the expression tree in the memory of the computer; and

    (d) enumerating plans for the expression tree in the memory of the computer, wherein the enumerated plans contain reorderings of the projection operations and binary operations in accordance with the projection sets and required sets.

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