Analytic enhancements to model clause in structured query language (SQL)
Abstract
A method for processing queries is provided. A database server receives and executes a query to generate a relation. The query comprises first one or more clauses and a model clause. The model clause comprises a rule that has a left-side expression and a right-side expression. In one embodiment, the right-side expression of the rule includes a window function, which specifies one or more partition columns. In an embodiment, the left-side expression comprises a for-loop predicate. The for-loop predicate is unfolded after the database server compiles the query. In one embodiment, the left-side expression of the rule comprises one or more existential predicates, where each existential predicate evaluates to a Boolean value.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 2.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for processing queries comprising: executing a query to generate a relation defined by a model clause specified in said query, said model clause specifying: one or more dimension columns of said relation, and a rule, wherein said rule comprises: a left-side expression, wherein said left-side expression includes one or more existential predicates, wherein each of said one or more existential predicates evaluates to a Boolean value and refers to at least one of said one or more dimension columns of said relation; and a right-side expression; wherein executing said query comprises evalua
- Claim 2Depends on #1
The method of claim 1 , wherein
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,706,055 B2 | Partition aware evaluation of top-N queries | 2020 | 0 |
| US 9,721,007 B2 | Parallel data sorting | 2017 | 4 |
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- "Oracle® Database Quick Installation Guide 10g Release 1 (10.1.0.2.0)) for Windows" [online]. Mar. 2004. [retrieved on Nov. 17, 2011]. Retrieved from the Internet: 28 pages.
- "Oracle® Database Quick Installation Guide 10g Release 1 (10.1.0.2.0)) for Windows" [online]. Mar. 2004. [retrieved on Nov. 17, 2011]. Retrieved from the Internet:< URL:http://docs.oracle.com/pdf/B13669—01.pdf> 28 pages.
- Gray Jim et al, "Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals," Feb. 26, 1996, IEEE, XP010158909, 75 pages.
- Haydu, John, "The SQL Model Clause of Oracle Database 10g", Oracle Corporation, Aug. 2003, 20 Pages.
- Hellerstein et al., "Predicate migration: Optimizing queries with expensive predicates,"Proceedings of ACM SIGMOD 2003, Washington DC, 1993, 10 pages.