Patents
US 10,102,248 B2#26166124 Most CitedActiveUnited States (USPTO)Utility

Join type for optimizing database queries

4Forward Citations (#26166124 Global)
0.5/yrCitation Velocity (#16005352 Global)
1.23Citation PageRank (#30884543 Global)
22Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A query complier analyzes a query to identify a correlated scalar subquery. The query complier transforms the query having the correlated scalar subquery into a query of AGGREGATION INNER/OUTER JOIN or MAX1ROW INNER/OUTER JOIN depending on a result type of the correlated scalar subquery. The AGGREGATION INNER/OUTER JOIN performs JOIN on the rows of the correlated scalar subquery with the rows of a main query and AGGREGATE on the joined rows and returns a result of the joined rows of the main query and aggregation value thereof. The MAX1ROW INNER/OUTER JOIN performs JOIN on the rows of the correlated scalar subquery with the rows of a main query, raises Error when the number of joined rows of the subquery is two or more and returns a result of the row of the main query and the joined row of the subquery.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for optimizing database queries in a query compiler, comprising: searching a subquery within a query; analyzing the searched subquery to identify a candidate of a scalar subquery; analyzing the candidate scalar subquery to identify a candidate of a correlated scalar subquery; and transforming the query having the candidate correlated scalar subquery into a query of a quasi-JOIN depending on a result type of the candidate correlated scalar subquery, wherein the quasi-JOIN is a join to process grouping and aggregation, in which Group by Aggregation and Join that is a lower node of the G

Technical Overview & Description

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

References Cited — Backward Prior Art (22)

PatentTitleYearCitations
US 5,367,675 AComputer automated system and method for optimizing the processing of a query in a relational database system by merging subqueries with the query1994219
US 5,412,804 AExtending the semantics of the outer join operator for un-nesting queries to a data base1995256
US 5,615,361 AExploitation of uniqueness properties using a 1-tuple condition for the optimization of SQL queries199768
US 5,724,570 AMethod and apparatus for a complete SQL subquery elimination process1998104
US 5,761,657 AGlobal optimization of correlated subqueries and exists predicates199872
US 5,822,750 AOptimization of correlated SQL queries in a relational database management system1998277
US 6,032,143 AEvaluation of existential and universal subquery in a relational database management system for increased efficiency200072
US 6,088,524 AMethod and apparatus for optimizing database queries involving aggregation predicates2000122
US 6,339,768 B1Exploitation of subsumption in optimizing scalar subqueries200258
US 6,411,951 B1Evaluating SQL subqueries2002104
US 2003078909 A1Eliminating group-by operations in a join plan—27
US 2003088558 A1Optimizing correlated queries using automatic summary tables—83
US 6,826,562 B1Method of simplifying and optimizing scalar subqueries and derived tables that return exactly or at most one tuple200447
US 2006026115 A1Reusing optimized query blocks in query processing—18
US 2006041537 A1Selecting candidate queries—37
US 7,246,108 B2Reusing optimized query blocks in query processing200713
US 2007168324 A1Relational database scalar subquery optimization—25
US 7,275,056 B2System and method for transforming queries using window aggregation200717
US 2008306906 A1System for aggregation subquery join elimination—11
US 7,577,647 B2Combining nested aggregators200917
US 2011029508 A1Selectivity-based optimized-query-plan caching—86
US 8,521,723 B1Transforming correlated scalar subqueries201324