System and method for computing running and moving sequence functions in a database system
AssigneeCompaq Computer Corporation
InventorsPeter N. Lohman, Robert M. Wehrmeister, Mark E Melton
Life of this patent
Estimating the term…
Loading patent…
AssigneeCompaq Computer Corporation
InventorsPeter N. Lohman, Robert M. Wehrmeister, Mark E Melton
Estimating the term…
A database query compiler and compilation method has special facilities for compiling a query that includes one or more of a predefined set of running and moving sequence functions. The compiler converts the query into a predefined normalized form suitable for compilation using a running and moving function normalizer. The running and moving function normalizer converts each running and moving sequence function in the set into a corresponding ordered set of one or more executable statements, which include at least one Offset sequence function that accesses data in an auxiliary field of a row of a table. An offset sequence function compiler, compiles each Offset sequence function, Offset(argument, index), in the normalized database query into a compiled set of instructions, including instructions for storing and reading the auxiliary fields to and from a buffer that is separate from the table. The buffer is preferably stored in volatile, main memory. As a result, when the Offset sequence function is executed, information from a previous is accessed without having to change the cursor position for the table.
A computer program product for use in conjunction with a computer system, the computer program product comprising a computer readable storage medium and a computer program mechanism embedded therein, the computer program mechanism comprising:
A method of executing a database query, comprising:
A method of compiling a database query, comprising:
Dependencies are inferred from the claim text.