Method and apparatus for producing sequenced queries
First Claim
1. An apparatus for producing at least one sequenced query comprising:
- a query receiver having an input for receiving and storing a first query describing at least one set of a plurality of data comprising a plurality of start and end point data and comprising other data and having an output for providing the first query;
a constant set query builder module having a first input coupled to the query receiver output for building and providing at an output at least one second query capable of producing a result defining a set of a plurality of beginning and end point pairs, each said pair defining a constant range of at least a part of the other data in the at least one set of a plurality of data described in the first query received by at the constant set query builder first input; and
a query builder module having a first input coupled to the query receiver output and a second input coupled to the constant set query builder module output for building and providing at an output the at least one sequenced query responsive to the first query received by the query receiver and the second query built by the constant set query builder module.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus converts an original query into a sequenced query that takes into account a range of values of a variable defined by a start and end point in performing the query. The start or end points are calculated if necessary and a query to collect all of the start and end points may be generated, and a query is generated that produces a constant set of start and end points defining consecutive periods, such that all the data in the tables related to the original query is constant over each of these periods. These two queries are merged into the original query to produce a sequenced query capable of execution on various database software and capable of taking into account the range of values of the variable in performing the original query.
85 Citations
30 Claims
-
1. An apparatus for producing at least one sequenced query comprising:
-
a query receiver having an input for receiving and storing a first query describing at least one set of a plurality of data comprising a plurality of start and end point data and comprising other data and having an output for providing the first query; a constant set query builder module having a first input coupled to the query receiver output for building and providing at an output at least one second query capable of producing a result defining a set of a plurality of beginning and end point pairs, each said pair defining a constant range of at least a part of the other data in the at least one set of a plurality of data described in the first query received by at the constant set query builder first input; and a query builder module having a first input coupled to the query receiver output and a second input coupled to the constant set query builder module output for building and providing at an output the at least one sequenced query responsive to the first query received by the query receiver and the second query built by the constant set query builder module. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method of building a sequenced query, comprising:
-
receiving a first query describing at least one set of a plurality of data comprising start and end point data and comprising other data; storing the query received; building a second query capable of producing a result defining a set of a plurality of start and end point pairs, each said pair defining a constant range of at least a part of the start and end point data in the at least one set of the plurality of data described in the first query received; and building the sequenced query responsive to the first query received and the second query built. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product having a computer useable medium having computer readable program code embodied therein for building a sequenced query, the computer program product comprising:
-
computer readable program code devices configured to cause a computer to receive a first query describing at least one set of a plurality of data comprising start and end point data and comprising other data; computer readable program code devices configured to cause a computer to store the query received; computer readable program code devices configured to cause a computer to build a second query capable of producing a result defining a set of a plurality of start and end point pairs, each said pair defining a constant range of at least a part of the start and end point data in the at least one set of the plurality of data described in the first query received; and computer readable program code devices configured to cause a computer to build the sequenced query responsive to the first query received and the second query built. - View Dependent Claims (22, 23, 24, 25, 26, 27, 28, 29, 30)
-
Specification