Rewriting queries with arbitrary aggregation functions using views
Authors:
Open Access
- 1 June 2006
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 31 (2) , 672-715
Abstract
The problem of rewriting aggregate queries using views is studied for conjunctive queries with arbitrary aggregation functions and built-in predicates. Two types of queries over views are introduced for rewriting aggregate queries: pure candidates and aggregate candidates . Pure candidates can be used to rewrite arbitrary aggregate queries. Aggregate candidates can be used to rewrite queries containing aggregate functions definable in terms of a commutative-semigroup operation. For both types of candidates (as well as for several relaxations of these candidates), the unfolding property holds. This allows characterizations for query equivalence to be used to determine whether a candidate is a rewriting of a query. The complexity of the rewriting-existence problem is also studied and upper and lower complexity bounds are given.Keywords
This publication has 24 references indexed in Scilit:
- Equivalences among aggregate queries with negationACM Transactions on Computational Logic, 2005
- Containment of aggregate queriesACM SIGMOD Record, 2005
- On the equivalence and rewriting of aggregate queriesActa Informatica, 2004
- Selecting and Using Views to Compute Aggregate QueriesLecture Notes in Computer Science, 2004
- On the content of materialized aggregate viewsJournal of Computer and System Sciences, 2003
- Answering queries using views: A surveyThe VLDB Journal, 2001
- Algorithms for Rewriting Aggregate Queries Using ViewsLecture Notes in Computer Science, 2000
- Deciding equivalences among aggregate queries1998
- The GMAP: a versatile tool for physical data independenceThe VLDB Journal, 1996
- Data model and query evaluation in global information systemsJournal of Intelligent Information Systems, 1995