← Back to Patent Explorer
US5752017A Expired / Lapsed US ⏱️ 0.0 years remaining

Method and apparatus for executing complex SQL queries using projection operations

Assignee: International Business Machines Corp
•
Filing: 1995-06-05
•
Granted: 1998-05-12
•
Expires: 2015-06-05
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A method and apparatus for reordering complex SQL queries containing joins, outer and full outer joins. The method and apparatus first translates the query into a hypergraph representation. Required sets, conflict sets and preserved sets are then generated for the query hypergraph. Using the required sets, a plurality of plans are enumerated, wherein the plans represent associative reorderings of relations in the query. SQL operators are selectively assigned to each of the enumerated plans using the conflict sets and/or preserved sets, so that the results from the plans are identical to the original query. A novel Modified General Outer Join (MGOJ) operator may be assigned to the root of a sub-tree, wherein the MGOJ operator is a compensation operator. The operator assignment is performed recursively for the root of each sub-tree in the plan. One of the enumerated plans (generally the most optimal) is then selected for execution.

Inventors

  • 👤 Gautam Bhargava
  • 👤 Piyush Goel
  • 👤 Balakrishna Ragmavendra Iyer

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-01 16:12
CPC Classifications
G; G06; G06F; G06F16/00; G06F16/20; G06F16/24; G06F16/245; G06F16/2453; G06F16/24534; G06F16/24542; G06F16/24544; Y; Y10; Y10S; Y10S707/00; Y10S707/99931; Y10S707/99932

Claims Analysis

Total Claims: 6
Claim 1
Independent Claim 53 words
A method of executing a query in a computer, comprising the steps of: (a) accepting a query into the computer; and (b) performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.
Claim 2
Independent Claim 53 words
A method of executing a query in a computer, comprising the steps of: (a) accepting a query into the computer; and (b) performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.
Claim 3
Dependent Claim 97 words
A program storage device readable by a computer, tangibly embodying a program of instructions executable by the computer to perform method steps for executing a query, the query being used by the computer to direct information retrieval from a relational database stored in an electronic storage device coupled to the computer, the method comprising the steps of: (a) accepting a query into the computer; and (b) performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.
Claim 4
Dependent Claim 97 words
A program storage device readable by a computer, tangibly embodying a program of instructions executable by the computer to perform method steps for executing a query, the query being used by the computer to direct information retrieval from a relational database stored in an electronic storage device coupled to the computer, the method comprising the steps of: (a) accepting a query into the computer; and (b) performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.
Claim 5
Independent Claim 82 words
An apparatus for executing a query, comprising: a computer, wherein the query is used by the computer to direct information retrieval from a relational database stored in an electronic storage device in communication with the computer, the computer further comprising: means for accepting the query into the computer; and means for performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.
Claim 6
Independent Claim 82 words
An apparatus for executing a query, comprising: a computer, wherein the query is used by the computer to direct information retrieval from a relational database stored in an electronic storage device in communication with the computer, the computer further comprising: means for accepting the query into the computer; and means for performing a projection operation in the query, wherein the projection operation allows a choice in the selection among a plurality of virtual attributes from a source expression of the projection operation.

References Cited (Backward Citations)

US4829427A Cited
US4769772A Cited
US5091852A Cited
US5367675A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2001-05-11 2001-11-10 2002-05-12 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2005-05-11 2005-11-10 2006-05-12 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2009-05-11 2009-11-10 2010-05-12 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag