Computing Range Consistent Answers to Aggregation Queries via Rewriting
Open Access
- 4 November 2024
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 2 (5) , 1-19
Abstract
We consider the problem of answering conjunctive queries with aggregation on database instances that may violate primary key constraints. In SQL, these queries follow the SELECT-FROM-WHERE-GROUP BY format, where the WHERE-clause involves a conjunction of equalities, and the SELECT-clause can incorporate aggregate operators like MAX, MIN, SUM, AVG, or COUNT. Repairs of a database instance are defined as inclusion-maximal subsets that satisfy all primary keys. For a given query, our primary objective is to identify repairs that yield the lowest aggregated value among all possible repairs. We particularly investigate queries for which this lowest aggregated value can be determined through a rewriting in first-order logic with aggregate operators.Keywords
All Related Versions
Funding Information
- Fonds De La Recherche Scientifique - FNRS
This publication has 32 references indexed in Scilit:
- Counting and enumerating preferred database repairsTheoretical Computer Science, 2020
- Consistent Query Answering for Primary Keys in DatalogTheory of Computing Systems, 2020
- A dichotomy in the complexity of counting database repairsJournal of Computer and System Sciences, 2013
- Prioritized repairing and consistent query answering in relational databasesAnnals of Mathematics and Artificial Intelligence, 2012
- On the first-order expressibility of computing certain answers to conjunctive queries over uncertain databases2010
- The complexity and approximation of fixing numerical attributes in databases under integrity constraintsInformation Systems, 2008
- Rewriting queries with arbitrary aggregation functions using viewsACM Transactions on Database Systems, 2006
- ConQuer2005
- Scalar aggregation in inconsistent databasesTheoretical Computer Science, 2003
- Scalar Aggregation in FD-Inconsistent Databases2001