Transforming SQL Queries with Table Subqueries
First Claim
Patent Images
1. A computer-implemented method for transformation of an SQL query comprising Table Subqueries comprising the steps of:
- a) identifying each table subquery that does not return any grouped or aggregated rows;
b) iteratively removing each table subquery and replacing with a logically equivalent table expression with no intervening derived table.
0 Assignments
0 Petitions
Accused Products
Abstract
A computer automated technique for rewriting SQL with table subqueries into more optimal table expression equivalents without derived tables. The context of the table subqueries, including any join and filter predicates are moved to the encompassing outer query. The advantage of this technique is to provide optimized source SQL to the relational database optimizers.
-
Citations
12 Claims
-
1. A computer-implemented method for transformation of an SQL query comprising Table Subqueries comprising the steps of:
-
a) identifying each table subquery that does not return any grouped or aggregated rows;
b) iteratively removing each table subquery and replacing with a logically equivalent table expression with no intervening derived table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
Specification