Self join elimination through union
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)
- 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.
- 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.
- 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 ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (24)
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".