Horizontal aggregations in a relational database management system
First Claim
Patent Images
1. A method of computing aggregates in a database system, comprising:
- receiving a query that specifies a grouping operation and an aggregate operation; and
producing, by one or more processors, plural aggregate values in an output row in response to the query, wherein receiving the query comprises receiving a query containing a horizontal aggregate function and a GROUP BY clause specifying grouping columns D1, . . . , Dj, the horizontal aggregate function including an argument list that specifies an aggregate column A and sub-grouping columns Dj+1, . . . , Dk that specify groups in the output row.
2 Assignments
0 Petitions
Accused Products
Abstract
A database system is able to receive a query containing a horizontal aggregate function. In response to the query containing the horizontal aggregate function, aggregate values are produced in a horizontal format. In general, the query can contain both horizontal (new) aggregate functions and vertical (standard) aggregate functions.
-
Citations
14 Claims
-
1. A method of computing aggregates in a database system, comprising:
-
receiving a query that specifies a grouping operation and an aggregate operation; and producing, by one or more processors, plural aggregate values in an output row in response to the query, wherein receiving the query comprises receiving a query containing a horizontal aggregate function and a GROUP BY clause specifying grouping columns D1, . . . , Dj, the horizontal aggregate function including an argument list that specifies an aggregate column A and sub-grouping columns Dj+1, . . . , Dk that specify groups in the output row. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An article comprising at least one non-transitory machine-readable storage medium storing instructions that when executed cause a database system to:
-
receive a query containing a GROUP BY clause specifying grouping columns D1, . . . , Dj, and a horizontal aggregate function having an argument list specifying aggregate attribute A and sub-grouping columns Dj+1, . . . , Dk; and in response to the query containing the GROUP BY clause and the horizontal aggregate function, produce aggregate values in a horizontal format according to the argument list of the horizontal aggregate function, wherein the aggregate values are produced by applying the horizontal aggregate function on the aggregate attribute A. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A database system comprising:
-
a storage to store a table; and a controller comprising at least one processor to; receive a query containing a GROUP BY clause specifying grouping columns D1, . . . , Dj, and a horizontal aggregate function specifying an aggregate attribute A and sub-grouping columns Dj+1, . . . , Dk; in response to the horizontal aggregate function, calculate an aggregation to produce aggregate values; and produce one or plural output rows, each of the one or plural output rows containing plural aggregate values corresponding to groups specified by the sub-grouping columns of the horizontal aggregate function. - View Dependent Claims (14)
-
Specification