Authors
Sara Cohen, Werner Nutt, Yehoshua Sagiv
Publication date
2007/4/1
Journal
Journal of the ACM (JACM)
Volume
54
Issue
2
Pages
5-es
Publisher
ACM
Description
Equivalence of aggregate queries is investigated for the class of conjunctive queries with comparisons and the aggregate operators count, count-distinct, min, max, and sum. Essentially, this class contains 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 are either interpreted over a domain with a dense order (like the rationals) or with a discrete order (like the integers). Characterizations of equivalence differ for the 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 …
Total citations
2007200820092010201120122013201420152016201720182019202020212022202320242198351726461282020168
Scholar articles