Deciding Equivalences Among Aggregate Queries.
Werner Nutt, Yehoshua Sagiv, Sara Shurin:
Deciding Equivalences Among Aggregate Queries.
PODS 1998: 214-223@inproceedings{DBLP:conf/pods/NuttSS98,
author = {Werner Nutt and
Yehoshua Sagiv and
Sara Shurin},
title = {Deciding Equivalences Among Aggregate Queries},
booktitle = {Proceedings of the Seventeenth ACM SIGACT-SIGMOD-SIGART Symposium
on Principles of Database Systems, June 1-3, 1998, Seattle, Washington},
publisher = {ACM Press},
year = {1998},
isbn = {0-89791-996-3},
pages = {214-223},
ee = {http://doi.acm.org/10.1145/275487.275512, db/conf/pods/NuttSS98.html},
crossref = {DBLP:conf/pods/98},
bibsource = {DBLP, http://dblp.uni-trier.de}
}
BibTeX
Abstract
Equivalence of aggregate queries is investigated for the class of
conjunctive queries with comparisons and the aggregate operators min,
max, count, count-distinct, and sum. Essentially, this class contains
all unnested SQL queries with the above aggregate operators, with a
WHERE clause consisting of a conjunction of comparisons, and without a
HAVING clause. The comparisons can be interpreted over either a dense
order (e.g., over the rationals) or a discrete order (e.g., over the
integers). Generally, however, different techniques and
characterizations are needed in each of these two cases.
For queries with either max or min, equivalence is characterized in
terms of dominance mappings, which can be viewed as a generalization
of containment mappings. For queries with the count-distinct
operator, a sufficient condition for equivalence is given in terms of
equivalence of conjunctive queries under set semantics. For some
special cases, it is shown that this condition is also necessary. For
conjunctive queries with comparisons but without aggregation,
equivalence under bag-set semantics is characterized in terms of
isomorphism. This characterization essentially remains the same also
for queries with the count operator. Moreover, this characterization
also applies to queries with the sum operator if the queries have
either constants or comparisons, but not both. In the general case
(i.e., both comparisons and constants), the characterization of the
equivalence of queries with the sum operator is more elaborate. All
the characterizations given in the paper are decidable with with
polynomial space.
Finally, it is shown that all the characterizations for min-, max-,
count-, and sum-queries yield polynomial-time algorithms for linear
queries, i.e., queries with no repeated predicates in their bodies.
Copyright © 1998 by the ACM,
Inc., used by permission. Permission to make
digital or hard copies is granted provided that
copies are not made or distributed for profit or
direct commercial advantage, and that copies show
this notice on the first page or initial screen of
a display along with the full citation.
Load The ACM SIGMOD Anthology, CDROM Edition, Volume 1-3, PODS '82-'98.
and ...
Load The ACM SIGMOD Anthology, Silver Edition, DVD 1, Proceedings.
and ...
BibTeX
Printed Edition
Proceedings of the Seventeenth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, June 1-3, 1998, Seattle, Washington.
ACM Press 1998, ISBN 0-89791-996-3
Contents BibTeX
[Index Terms]
[Full Text in PDF Format, 1333 KB]
References
- [ASU79]
- Alfred V. Aho, Yehoshua Sagiv, Jeffrey D. Ullman:
Efficient Optimization of a Class of Relational Expressions.
ACM Trans. Database Syst. 4(4): 435-454(1979) BibTeX
- [CKPS95]
- Surajit Chaudhuri, Ravi Krishnamurthy, Spyros Potamianos, Kyuseok Shim:
Optimizing Queries with Materialized Views.
ICDE 1995: 190-200 BibTeX
- [CM77]
- Ashok K. Chandra, Philip M. Merlin:
Optimal Implementation of Conjunctive Queries in Relational Data Bases.
STOC 1977: 77-90 BibTeX
- [CV93]
- Surajit Chaudhuri, Moshe Y. Vardi:
Optimization of Real Conjunctive Queries.
PODS 1993: 59-70 BibTeX
- [DJLS96]
- Divesh Srivastava, Shaul Dar, H. V. Jagadish, Alon Y. Levy:
Answering Queries with Aggregation Using Views.
VLDB 1996: 318-329 BibTeX
- [GHQ95]
- Ashish Gupta, Venky Harinarayan, Dallan Quass:
Aggregate-Query Processing in Data Warehousing Environments.
VLDB 1995: 358-369 BibTeX
- [IR95]
- Yannis E. Ioannidis, Raghu Ramakrishnan:
Containment of Conjunctive Queries: Beyond Relations as Sets.
ACM Trans. Database Syst. 20(3): 288-324(1995) BibTeX
- [JK83]
- David S. Johnson, Anthony C. Klug:
Optimizing Conjunctive Queries that Contain Untyped Variables.
SIAM J. Comput. 12(4): 616-640(1983) BibTeX
- [LMSS93]
- Alon Y. Levy, Inderpal Singh Mumick, Yehoshua Sagiv, Oded Shmueli:
Equivalence, Query-Reachability, and Satisfiability in Datalog Extensions.
PODS 1993: 109-122 BibTeX
- [LS95]
- Alon Y. Levy, Yehoshua Sagiv:
Semantic Query Optimization in Datalog Programs.
PODS 1995: 163-173 BibTeX
- [RSSS98]
- ...
- [SS92]
- ...
- [SY81]
- Yehoshua Sagiv, Mihalis Yannakakis:
Equivalences Among Relational Expressions with the Union and Difference Operators.
J. ACM 27(4): 633-655(1980) BibTeX
- [vdM92]
- Ron van der Meyden:
The Complexity of Querying Indefinite Data about Linearly Ordered Domains.
PODS 1992: 331-345 BibTeX
Referenced by
- Markos Zaharioudakis, Roberta Cochrane, George Lapis, Hamid Pirahesh, Monica Urata:
Answering Complex SQL Queries Using Automatic Summary Tables.
SIGMOD Conference 2000: 105-116
- Stéphane Grumbach, Maurizio Rafanelli, Leonardo Tininini:
Querying Aggregate Data.
PODS 1999: 174-184
- Sara Cohen, Werner Nutt, Alexander Serebrenik:
Rewriting Aggregate Queries Using Views.
PODS 1999: 155-166
BibTeX
ACM SIGMOD Anthology - DBLP:
[Home | Search: Author, Title | Conferences | Journals]
ACM SIGMOD Anthology: Copyright © by ACM (info@acm.org), Corrections: anthology@acm.org
DBLP: Copyright © by Michael Ley (ley@uni-trier.de), last change: Sat May 16 23:34:20 2009