Outer join optimizations in database management systems
Abstract
In one embodiment, a method of processing a structured query language (SQL) statement is provided, comprising: determining whether a first query and a second query are equivalent, the first and second queries being respectively the left side and the right side operands of the OUTER JOIN operation; determining whether a SELECT output of the SQL statement does not refer to database columns from the left side of the OUTER JOIN operation which are not also partitioning columns of the OUTER JOIN operation; and responsive to determining that the first query and the second query are equivalent and that the SELECT output of the SQL statement does not refer to database columns from the left side of the OUTER JOIN operation which are not also partitioning columns of the OUTER JOIN operation, transforming the SQL statement into an optimized query SQL statement by removing the OUTER JOIN operation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of processing a structured query language (SQL) statement, the SQL statement comprising at least an OUTER JOIN operation, the method comprising: determining, by one or more computer processors, whether a first query and a second query are equivalent, the first and second queries being respectively the left side and the right side operands of the OUTER JOIN operation; determining whether an output of the right side of the OUTER JOIN operation contains an output of the left side of the OUTER JOIN operation; determining whether partitioning columns of a GROUP BY operation are the same as
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2022391949 A1 | System and method for advertisement transmission and display | — | 1 |
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- "Elimination of unnecessary inner and outer joins", SQL Anywhere 12.0.0, printed on Jun. 8, 2015, 1 page, Copyright © 2010, iAnywhere Solutions, Inc.-SQL Anywhere 12.0.0.
- "Method and System for Full Outer Join Elimination in the Presence of Multiple Distinct Aggregation", An IP.com Prior Art Database Technical Disclosure, Authors et. al.: Disclosed Anonymously, IP.com No. 000212340, IP.com Electronic Publication: Nov. 7, 2011, pp. 1-6, <IP.com at: http://null/IPCOM/0
- “Elimination of unnecessary inner and outer joins”, SQL Anywhere 12.0.0, printed on Jun. 8, 2015, 1 page, Copyright © 2010, iAnywhere Solutions, Inc.—SQL Anywhere 12.0.0.
- Barbas et al., "Outer Join Optimizations in Database Management Systems", U.S. Appl. No. 14/814,544, filed Jul. 31, 2015, 67 pages.
- Boag et al., "XQuery 1.0: An XML Query Language (Second Edition)", W3C®, W3C Recommendation Dec. 14, 2010 (Link errors corrected Jan. 3, 2011), pp. 1-106, Copyright © 2010 W3C®.