Digital Review dblp.uni-trier.de

Review - Querying Multiple Features of Groups in Relational Databases.

Divesh Srivastava: Review - Querying Multiple Features of Groups in Relational Databases. ACM SIGMOD Digital Review 2: (2000) BibTeX

Review

Aggregation is an important, and widely used, feature of SQL, especially in decision support queries. Over the years, however, much doubt has been expressed about the ad hoc nature of grouping/aggregation in SQL, and the fact that certain conceptually simple queries can be represented only in convoluted ways in SQL. By and large, proposed improvements have also been ad hoc, without a careful understanding of the class of queries better expressed in the "improved" languages.

The interesting observation made by Chatziantoniou and Ross in this paper is that a large class of conceptually simple, and efficiently evaluable, queries involves correlated aggregations over the same groups. This observation led them to formulate an SQL extension with the following key insights:

  1. a sequence of grouping variables, and predicates correlating these variables, can be used to naturally represent a nested sequence of aggregations and selections over the same groups (for example, identifying, for each customer, their longest call and the corresponding area code), and
  2. performing aggregations and selections repeatedly over the same groups can be done much more efficiently than using standard joins and aggregations.

This paper deserves to be widely read for the simplicity and elegance of its solution for enhancing support for grouping/aggregation in SQL.

[Full Disclosure: The authors of this paper are former co-authors. However, this has not affected my views on the paper.]

Copyright © 2000 by the author(s). Review published with permission.


References

[1]
Damianos Chatziantoniou, Kenneth A. Ross: Querying Multiple Features of Groups in Relational Databases. VLDB 1996: 295-306 BibTeX
BibTeX
Digital Review - DBLP: [Home | Search: Author, Title | Conferences | Journals]
Digital Review: Copyright © by ACM (info@acm.org),
DBLP: Copyright © by Michael Ley (ley@uni-trier.de), last change: Sat May 16 23:57:29 2009