System and method for rewriting relational database queries
First Claim
Patent Images
1. A method for answering a database query comprising the acts of:
- receiving a database query;
determining if the database query should be rewritten; and
rewriting the database query by utilizing functional dependencies, the rewriting being performed if it is determined that the query should be rewritten, and wherein each of the functional dependencies comprises a constraint.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method for answering a relational database query is presented. According to an embodiment of the present invention, a database query is received. It is then determined whether that query can be rewritten in such a manner as to be able to utilize a precomputed view, such that an answer to the rewritten query is equivalent to an answer to the original query. If the query can be rewritten, it is determined whether the rewritten query can more efficiently derive the answer than the original query. The query which has the most efficiently derived answer is the query which is utilized to derive that answer.
148 Citations
30 Claims
-
1. A method for answering a database query comprising the acts of:
-
receiving a database query;
determining if the database query should be rewritten; and
rewriting the database query by utilizing functional dependencies, the rewriting being performed if it is determined that the query should be rewritten, and wherein each of the functional dependencies comprises a constraint. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
-
-
28. A system for answering a database query, the system comprising:
-
means for receiving a database query;
means for determining if the query should be rewritten; and
means for rewriting the database query by utilizing functional dependencies, the rewriting being performed if it is determined that the query should be rewritten, and wherein each of the functional dependencies comprises a constraint.
-
-
29. A computer program product, for answering a database query, the computer program product comprising:
-
computer code for receiving a database query;
computer code for determining if the query should be rewritten; and
computer code for rewriting the database query by utilizing functional dependencies, the rewriting being performed if it is determined that the query should be rewritten, and wherein each of the functional dependencies comprises a constraint. - View Dependent Claims (30)
-
Specification