Authors
Sara Cohen, Werner Nutt, Yehoshua Sagiv
Publication date
2001/5/1
Book
Proceedings of the twentieth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems
Pages
215-226
Description
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, top2 and parity. 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), stdev (standard deviation), median 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, top2, parity, and avg. A …
Total citations
200220032004200520062007200820092010201120122013201420152016201720182019202020212022202321444517122111232112
Scholar articles
S Cohen, W Nutt, Y Sagiv - Proceedings of the twentieth ACM SIGMOD-SIGACT …, 2001