Welcome to DiSC 2002
SIGMOD 2001
PODS 2001
 = PODS'01 Website
 = SIGMOD/PODS'01 Plena
<<< = PODS'01 Papers>>>
 = Invited Talks
 = Award Talks
 = Tutorials
 SIGMOD RECORD 2001
CIKM 2001
CoopIS 2001
DASFAA 2001
DASFAA 2000
DBPL 2001
Data Engineering Bul
DEXA_EC-WEB 2001
DMKD 2001
 DPDJ 2001
HYPERTEXT 2001
ICDE 2001
ICDM 2001
ICDT 2001
JCDL 2001
KDD 2001
 KDD_EXPLORATIONS 20
KRDB 2001
MDM 2001
MIR 2001
MIS 2001
RIDE 2001
SBBD 2001
 SIGIR 2001
 SIGIR FORUM 2001
SSDBM 2001
SSTD 2001
TODS 2001
TIME 2001
VLDB 2001
VLDBJ 2001

Equivalences among Aggregate Queries with Negation


Sara Cohen, Werner Nutt, and Yehoshua Sagiv

  View Paper (PDF)  

Return to Aggregates


Abstract

Query equivalence is investigated for disjunctive aggregate queries with negated subgoals, constants and comparisons. A full characterization of equivalence is given for the aggregation functions COUNT, MAX, SUM, PROD, TOPTWO and PRTY. A related problem is that of determining, for a given natural number N, whether two given queries are equivalent over all databases with at most N constants. We call this problem bounded equivalence. A complete characterization of decidability of bounded equivalence is given. In particular, it is shown that this problem is decidable for all the above aggregation functions as well as for CNTD (count distinct), STDV (standard deviation), MDN and AVG. For quasilinear queries (i.e., queries in which predicates that occur positively are not repeated) it is shown that equivalence can be decided in polynomial time for the aggregation functions COUNT, MAX, SUM, PROD, TOPTWO, PRTY, and AVG. A similar result holds for CNTD provided that a few additional conditions hold. The results are couched in terms of abstract characteristics of aggregation functions, and new proof techniques are used. Finally, the results presented also imply that equivalence, under bag-set semantics, is decidable for nonaggregate queries with negation.


DiSC'02 © 2003 Association for Computing Machinery