Processing cross-table non-boolean term conditions in database queries
First Claim
Patent Images
1. A method for searching for data in a database, the method comprising:
- receiving a query that is a request for data in the database, wherein the query includes at least one uneven non-Boolean term condition including an OR condition that spans at least two tables of the database, wherein the OR condition includes two predicates;
splitting the at least one uneven non-Boolean term condition into a plurality of separate query portions that each provide a Boolean term satisfied by accessing a different particular one of the at least two tables, wherein each predicate is provided to a different one of the separate query portions;
executing the separate query portions independently of each other to find at least one data result in each of the at least two tables that satisfies the Boolean term of each separate query portion;
identifying at least one bridge table, wherein the at least one bridge table does not satisfy the at least one uneven non-Boolean term condition and has at least one column from each of the at least two tables; and
combining the data results from each separate query portion into a final result that satisfies the query, wherein the at least one bridge table is used to join each of the at least two tables to combine the data results.
3 Assignments
0 Petitions
Accused Products
Abstract
Processing non-Boolean term conditions in database queries. A query that is a request for data in a database is received and includes at least one uneven non-Boolean term condition that spans multiple tables in the database. The non-Boolean term condition is split into separate portions, each of the portions providing a Boolean term that can be satisfied by accessing one table in the database. The separate portions are executed independently to find at least one data result in the database that satisfies the Boolean term of each separate portion, and the data result from each separate portion are combined into a final result that satisfies the query.
-
Citations
17 Claims
-
1. A method for searching for data in a database, the method comprising:
-
receiving a query that is a request for data in the database, wherein the query includes at least one uneven non-Boolean term condition including an OR condition that spans at least two tables of the database, wherein the OR condition includes two predicates; splitting the at least one uneven non-Boolean term condition into a plurality of separate query portions that each provide a Boolean term satisfied by accessing a different particular one of the at least two tables, wherein each predicate is provided to a different one of the separate query portions; executing the separate query portions independently of each other to find at least one data result in each of the at least two tables that satisfies the Boolean term of each separate query portion; identifying at least one bridge table, wherein the at least one bridge table does not satisfy the at least one uneven non-Boolean term condition and has at least one column from each of the at least two tables; and combining the data results from each separate query portion into a final result that satisfies the query, wherein the at least one bridge table is used to join each of the at least two tables to combine the data results. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer readable medium including program instructions implemented by a computer, the program instructions for searching for data in a database, the program instructions implementing steps comprising:
-
receiving a query that is a request for data in the database, wherein the query includes at least one uneven non-Boolean term condition including an OR condition that spans at least two tables of the database, wherein the OR condition includes two predicates; splitting the at least one uneven non-Boolean term condition into a plurality of separate query portions that each provide a Boolean term satisfied by accessing a different particular one of the at least two tables, wherein each predicate is provided to a different one of the separate query portions; executing the separate query portions independently of each other to find at least one data result in each of the at least two tables that satisfies the Boolean term of each separate query portion; identifying at least one bridge table, wherein the at least one bridge table does not satisfy the at least one uneven non-Boolean term condition and has at least one column from each of the at least two tables; and combining the data results from each separate query portion into a final result that satisfies the query, wherein the at least one bridge table is used to join each of the at least two tables to combine the data results. - View Dependent Claims (10, 11, 12, 13, 14, 17)
-
-
15. A system for searching for data in a database, the system comprising:
-
a storage device for storing data in a database, the data being referenced within a plurality of tables; and a processor coupled to the storage device, the processor operative to receive a query that is a request for data in the database, wherein the query includes at least one uneven non-Boolean term condition including an OR condition that spans at least two tables of the database, wherein the OR condition includes two predicates, wherein the processor is operative to split the at least one uneven non-Boolean term condition into a plurality of separate portions that each provide a Boolean term satisfied by accessing a different particular one of the at least two tables, wherein each predicate is provided to a different one of the separate query portions, wherein the processor is operative to process the query by executing the separate portions independently of each other to find at least one data result in each of the at least two tables that satisfies the Boolean term of each separate query portion, wherein the processor is operative to identify at least one bridge table, wherein the at least one bridge table does not satisfy the at least one uneven non-Boolean term condition and has at least one column from each of the at least two tables, and wherein the data results from each separate query portion are combined into a final result that satisfies the query, wherein the at least one bridge table is used to join each of the at least two tables to combine the data results. - View Dependent Claims (16)
-
Specification