A Dichotomy in Consistent Query Answering for Primary Keys and Unary Foreign Keys

03/25/2022
by   Miika Hannula, et al.
0

Since 2005, significant progress has been made in the problem of Consistent Query Answering (CQA) with respect to primary keys. In this problem, the input is a database instance that may violate one or more primary key constraints. A repair is defined as a maximal subinstance that satisfies all primary keys. Given a Boolean query q, the question then is whether q holds true in every repair. So far, theoretical research in this field has not addressed the combination of primary key and foreign key constraints, despite the importance of referential integrity in database systems. This paper addresses the problem of CQA with respect to both primary keys and foreign keys. In this setting, it is natural to adopt the notion of symmetric-difference repairs, because foreign keys can be repaired by inserting new tuples. We consider the case where foreign keys are unary, and queries are conjunctive queries without self-joins. In this setting, we characterize the boundary between those CQA problems that admit a consistent first-order rewriting, and those that do not.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/08/2018

Consistent Query Answering for Primary Keys in Logspace

We study the complexity of consistent query answering on databases that ...
research
06/07/2023

Reversible Numeric Composite Key (RNCK)

In database design, Composite Keys are used to uniquely identify records...
research
04/22/2022

Uniform Operational Consistent Query Answering

Operational consistent query answering (CQA) is a recent framework for C...
research
07/11/2021

Fairer Software Made Easier (using "Keys")

Can we simplify explanations for software analytics? Maybe. Recent resul...
research
01/20/2023

A Simple Algorithm for Consistent Query Answering under Primary Keys

We consider the dichotomy conjecture for consistent query answering unde...
research
05/31/2022

Discovery of Keys for Graphs [Extended Version]

Keys for graphs uses the topology and value constraints needed to unique...
research
12/17/2021

Counting Database Repairs Entailing a Query: The Case of Functional Dependencies

A key task in the context of consistent query answering is to count the ...

Please sign up or login with your details

Forgot password? Click here to reset