Patents
US 5,548,754 A#634271 Most CitedExpiredUnited States (USPTO)Utility

Optimization of SQL queries using early-out join transformations

61Forward Citations (#634271 Global)
2.0/yrCitation Velocity (#1938913 Global)
19.27Citation PageRank (#355013 Global)
6Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method and apparatus for optimizing SQL queries in a relational database management system uses early-out join transformations. An early-out join comprises a many-to-one existential join, wherein the join scans an inner table for a match for each row of the outer table and terminates the scan for each row of the outer table when a single match is found in the inner table. To transform a many-to-many join to an early-out join, the query must include a requirement for distinctiveness, either explicitly or implicitly, in one or more result columns for the join operation. Distinctiveness can be specified using the DISTINCT keyword in the SELECT clause or can be implied from the predicates present in the query. The early-out join transformation also requires that no columns of the inner table be referenced after the join, or if an inner table column is referenced after the join, that each referenced column be "bound". A referenced column can be bound in one of three ways: (1) an inner table column can be bound to a constant through an equality predicate, (2) an inner table column can be bound to an outer table column, or (3) an inner table column can be bound to a correlated v

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of optimizing an SQL query in a computer having a memory, the SQL query being performed by the computer to retrieve data from a relational database stored in an electronic storage device coupled to the computer, and the SQL query including a join operation for an outer table and an inner table in the relational database, the method comprising the steps of: (a) examining the query in the memory of the computer to determine whether the query includes a requirement for distinctiveness in one or more result columns of the join operation; (b) examining the query in the memory of the comp

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 61 total)

PatentTitleYearCitations
US 8,069,193 B2Method and system for utilizing a generic scalar function to allow a column function to operate on row data20111
US 2006195489 A1Method, system, program and data structure for cleaning a database table—6
US 7,562,067 B2Systems and methods for estimating functional relationships in a database200913
US 2006282436 A1Systems and methods for estimating functional relationships in a database—24
US 7,702,622 B2Advanced techniques for SQL generation of performancepoint business rules20104
CN 110,008,238 ANLJ improves table connection method and the data query method based on the improved method—2
US 2008033940 A1Database Query Enabling Selection By Partial Column Name—20
US 8,027,969 B2Efficient calculation of sets of distinct results in an information retrieval service20112
US 2007185838 A1Efficient calculation of sets of distinct results—6
US 8,020,144 B2Metadata-based application deployment201119
US 5,761,657 AGlobal optimization of correlated subqueries and exists predicates199872
US 7,249,151 B2Method, system, program, and data structure for cleaning a database table20073
US 6,738,755 B1Query optimization method for incrementally estimating the cardinality of a derived relation when statistically correlated predicates are applied200481
US 2005065927 A1Object oriented query path expression to relational outer join translator method, system, article of manufacture, and computer program product—34
US 2009024940 A1Systems And Methods For Generating A Database Query Using A Graphical User Interface—47

Non-Patent Literature (5)

  • Agrawal et al., "Composition of Database Relations", Proceedings Fifth International Conference on Data Engineering, 6-10 Feb. 1989, Los Angles California, pp. 102-108.
  • Agrawal et al., Composition of Database Relations , Proceedings Fifth International Conference on Data Engineering, 6 10 Feb. 1989, Los Angles California, pp. 102 108.
  • 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.
  • Haas et al., "Extensible Query Processing in Starburst", IBM Almaden Research Center, San Jose, CA (US), ACM 1989, pp. 377-388.