System and method for performance complex heterogeneous database queries using a single SQL expression
First Claim
1. A computer system having one or more central processing units, one or more memories, and one or more databases, the computer system further comprising:
- one or more query objects created by a client process, the query objects having one or more sub-query objects and one or more execute methods that are capable of operating on their respective query object to produce one or more query expressions, all of the execute methods capable of producing the respective query expression that is compatible with a structured query language; and
a compound query containing one or more boolean expressions of one or more of the query objects, the compound query having one or more compound execute methods which invoke one or more of the execute methods of each of the query objects, each of the execute methods returning their respective query expression, the compound execute method using one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression and can be executed against a database to return a result without executing any of the query expressions against the database individually.
1 Assignment
0 Petitions
Accused Products
Abstract
Query objects are created by a client process. The query objects have one or more sub-query objects and one or more execute methods that are capable of operating on their respective query object to produce one or more query expressions. All of the execute methods are capable of producing the respective query expression that is compatible with a structured query language. A compound query contains one or more boolean expressions of one or more of the query objects. The compound query has one or more compound execute methods which invoke one or more the execute methods of each of the query objects. Each of the execute methods returns their respective query expression and the compound execute method uses one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression. This single expression can be execute against a database to return a result without executing any of the query expressions against the database individually.
266 Citations
18 Claims
-
1. A computer system having one or more central processing units, one or more memories, and one or more databases, the computer system further comprising:
-
one or more query objects created by a client process, the query objects having one or more sub-query objects and one or more execute methods that are capable of operating on their respective query object to produce one or more query expressions, all of the execute methods capable of producing the respective query expression that is compatible with a structured query language; and
a compound query containing one or more boolean expressions of one or more of the query objects, the compound query having one or more compound execute methods which invoke one or more of the execute methods of each of the query objects, each of the execute methods returning their respective query expression, the compound execute method using one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression and can be executed against a database to return a result without executing any of the query expressions against the database individually. - View Dependent Claims (2, 3, 4, 5, 9, 10, 11)
-
-
6. A computer system having one or more central processing units, one or more memories, and one or more databases, the computer system further comprising:
-
a means for creating one or more query objects, the query objects having one or more sub-query objects and one or more execute methods that are capable of operating on their respective query to produce one or more query expressions, all of the execute methods capable of producing the respective query expression that is compatible with a structured query language; and
means for invoking one or more of the execute methods of each of the query objects by using one or more compound execute methods in a compound query, the compound query containing one or more boolean expressions of one or more of the query objects, each of the execute methods returning their respective query expression, the compound execute method using one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression and executes against a database to return a result without executing any of the query expressions against the database individually. - View Dependent Claims (12)
-
-
7. A method executing on a computer system comprising the steps of:
-
creating one or more query objects, the query objects having one or more sub-query objects and one or more execute methods that are capable of operating on their respective query object to produce one or more query expressions, all of the execute methods capable of producing the respective query expression that is compatible with a structured query language; and
invoking one or more of the execute methods of each of the query objects by using one or more compound execute methods in a compound query, the compound query containing one or more boolean expressions of one or more of the query objects, each of the execute methods returning their respective query expression, the compound execute method using one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression and executes against a database to return a result without executing any of the query expressions against the database individually. - View Dependent Claims (13, 14, 15)
-
-
8. A computer program product which performs the steps of:
-
creating one or more query objects, the query objects having one or more sub-query objects and one or more execute methods that are capable of operating on their respective query object to produce one or more query expressions, all of the execute methods capable of producing the respective query expression that is compatible with a structured query language; and
invoking one or more of the execute methods of each of the query objects by using one or more compound execute methods in a compound query, the compound query containing one or more boolean expressions of one or more of the query objects, each of the execute methods returning their respective query expression, the compound execute method using one or more common table expressions to combine the query expressions to form a single compound query expression that represents the boolean expression and executes against a database to return a result without executing any of the query expressions against the database individually. - View Dependent Claims (16, 17, 18)
-
Specification