1997 · 35 citations · 18 references
ComputingComputer ScienceData ManagementDatabasesSyntaxData PartitioningDatabase ManagementQuery OptimizationQuery ProcessingRelational DatabasesStructured Query LanguageRelational Query ProcessingSql Syntax
In this paper, we define and examine a particu-lar class of queries called group queries. Group queries are natural queries in many decision-support applications. The main characteristic of a group query is that it can be executed in a group-by-group fashion. In other words, the underlying relation(s) can be partitioned (based on some set of attributes) into disjoint groups, and each group can be processed separately. We give a syntactic criterion to identify these queries and prove its sufficiency. We also prove the strong result that every group query has an equivalent formulation that satisfies our syntactic criterion. We describe a general evaluation technique for group queries, and demonstrate how an optimizer can determine this plan. We then consider more complex queries whose components are group queries with poten-tially different partitioning attributes. We give two methods to identify group query components within such a query. We also give some per-formance results for group queries expressed in standard SQL, comparing a commercial database system with our optimized plan on top of the same commercial system. These results indicate that there are significant potential performance improvements.
18
David J. DeWitt, Jim Gray · Communications of the ACM · 1992 · 1.3K citations · Full text
Timos Sellis · ACM Transactions on Database Systems · 1988 · 809 citations · Full text
Modeling multidimensional databases
R. K. Agrawal, Ankit Gupta, Sunita Sarawagi · 2002 · 453 citations
On optimizing an SQL-like nested query
Won Bae Kim · ACM Transactions on Database Systems · 1982 · 393 citations · Full text