Patents
US 7,440,937 B2#13880121 Most CitedActiveUnited States (USPTO)Utility

Self join elimination through union

8Forward Citations (#13880121 Global)
0.4/yrCitation Velocity (#18339931 Global)
1.51Citation PageRank (#22628574 Global)
24Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

A query optimization technique that determines whether a query includes a self join that is transitively derived through table expressions having UNION operators. If so, the query is simplified to eliminate the table expressions and to reduce the query to an equivalent query over tables.

Interactive Citation Constellation Global Citation Ranking

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

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A method of optimizing a query performed by a computer to retrieve data from a database, comprising: (a) determining whether a query includes a self join that is transitively derived through table expressions having UNION operators; and (b) simplifying the query to eliminate the table expressions and to reduce the query to an equivalent query over tables, when the query includes the self join that is transitively derived through the table expressions having the UNION operators.

  2. Claim 2Depends on #1

    The method of claim 1 , wherein the determining step (a) and simplifying step (b) are performed for each quantifier in the query, in order to determine whether the quantifier is part of the self-join that is transitively derived through table expressions having UNION operators.

  3. Claim 3Depends on #2

    The method of claim 2 , wherein the simplifying step (b) comprises: rewriting the table expres

Technical Overview & Description

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

References Cited — Backward Prior Art (24)

PatentTitleYearCitations
US 5,345,585 AMethod for optimizing processing of join queries by determining optimal processing order and assigning optimal join methods to each of the join operations199492
US 5,469,568 AMethod for choosing largest selectivities among eligible predicates of join equivalence classes for query optimization199563
US 5,548,755 ASystem for optimizing correlated SQL queries in a relational database using magic decorrelation1996153
US 5,615,361 AExploitation of uniqueness properties using a 1-tuple condition for the optimization of SQL queries199768
US 5,802,357 ASystem and method for performing an efficient join operation199857
US 5,822,750 AOptimization of correlated SQL queries in a relational database management system1998277
US 5,899,992 AScalable set oriented classifier199994
US 6,006,214 ADatabase management system, method, and program for providing query rewrite transformations for nested set elimination in database views199978
US 6,061,488 AOptical cable for transferring signals in a difficult environment200019
US 6,061,676 AEffecting constraint magic rewriting on a query with the multiset version of the relational algebric theta-semijoin operator2000125
US 6,324,533 B1Integrated database and data-mining system2001126
US 6,339,768 B1Exploitation of subsumption in optimizing scalar subqueries200258
US 6,397,204 B1Method, system, and program for determining the join ordering of tables in a join query2002110
US 6,438,741 B1System and method for eliminating compile time explosion in a top down rule based system using selective sampling200292
US 6,526,403 B1Method, computer program product, and system for rewriting database queries in a heterogenous environment200365
US 6,546,381 B1Query optimization system and method2003168
US 6,691,101 B2Database system providing optimization of group by operator over a union all2004126
US 6,711,560 B2Method of executing conflicting triggers in an active database200424
US 6,721,725 B2Method of parallel trigger execution in an active database200418
US 6,725,227 B1Advanced web bookmark database system2004604
US 6,745,174 B2Method of executing before-triggers in an active database200440
US 2006101044 A1Method, system and program for excuting a query having a union all operator and data modifying operations—6

Non-Patent Literature (5)

  • A. Swami: "Optimization of Large Join Queries" Combining Heuristics and Combinatorial techniques, Proc. of 1989, ACM-SIGMOD, pp. 367-376.
  • G.M. Lohman et al., 1990, IBM Technical Disclosure Bulletin, "Extensible Design for Generating Alternative Join Sequences in a Relational Query Optimizer," 32(11):317-318.
  • George Koch et al., Oracle: The complete reference third edition, year 1995, McGraw-Hill, version 7, 701, and 7.2, pp. 253-266.
  • George Koch et al.: Oracle: The complete Reference, third edition, 1995 Osborne McGraw-Hill, pp. 253-266.
  • George Kock et al.: Oracle "The complete Reference, third edition; 1995Mcgraw-Hill; versions 7, 7.1, and 7.2, pp. 253-266".