arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.01648cs.DB
收藏

通过重写计算聚合查询的范围一致答案

Computing Range Consistent Answers to Aggregation Queries via Rewriting

Aziz Amezian El Khalfioui, Jef Wijsen

AI总结:

本文研究在违反主键约束的数据库上回答带聚合的连接查询,目标是找出使聚合值最低的修复,并刻画可通过一阶逻辑聚合重写确定该值的查询类。

摘要:

我们考虑在可能违反主键约束的数据库实例上回答带聚合的连接查询问题。在SQL中,这些查询遵循SELECT-FROM-WHERE-GROUP BY格式,其中WHERE子句包含等值连接的合取,SELECT子句可以包含MAX、MIN、SUM、AVG或COUNT等聚合运算符。数据库实例的修复被定义为满足所有主键的包含极大子集。对于给定查询,我们的主要目标是识别在所有可能修复中产生最低聚合值的修复。我们特别研究了这类查询:其最低聚合值可以通过带聚合运算符的一阶逻辑重写来确定。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑