Patents
US 5,752,017 A#2479731 Most CitedExpiredUnited States (USPTO)Utility

Method and apparatus for executing complex SQL queries using projection operations

28Forward Citations (#2479731 Global)
1.0/yrCitation Velocity (#6177334 Global)
7.89Citation PageRank (#1571431 Global)
4Prior Art Cited
2Claims (2 Indep. · 0 Dep.)
0Drawings / Sheets

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.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 28.

Claims (2 — 2 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    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.

  2. Claim 2Independent Claim

    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 ch

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Cited By — Indexed Forward Citations (15 of 28 total)

Non-Patent Literature (5)

  • Apers, P.M.G., Hevner, A.R. and Yao, S.B., "Optimization Algorithms for Distributed Queries", IEEE Trans. Softw. Eng., SE-9, pp. 57-68, Jan. 1983.
  • Apers, P.M.G., Hevner, A.R. and Yao, S.B., Optimization Algorithms for Distributed Queries , IEEE Trans. Softw. Eng., SE 9, pp. 57 68, Jan. 1983.
  • Date C.J. & Darwen, Hugh., "Relational Database Management" Relational Database Writings 1989-1991, Part II, pp. 133-154.
  • Date C.J. & Darwen, Hugh., Relational Database Management Relational Database Writings 1989 1991 , Part II, pp. 133 154.
  • Dayal, Umeshwar, "Of Nests and Trees: A Unified Approach to Processing Queries That Contain Nested Subqueries, Aggregates, and Quantifiers", VLDB, pp. 197-208, 1987.