Abstract
We study containment of conjunctive queries that are evaluated over databases that may contain tuples with null values. We assume the semantics of SQL for single block queries with a SELECT DISTINCT clause. This problem ("null containment" for short) is different from containment over databases without null values and sometimes more difficult. We show that null-containment for boolean conjunctive queries is NP-complete while it is i72-complete for queries with distinguished variables. However, if no relation symbol is allowed to appear more than twice, then null-containment is polynomial, as it is for databases without nulls. If we add a unary test predicate IS NULL, as it is available in SQL, then containment becomes Π2-hard for boolean queries, while it remains in Π2 for arbitrary queries. © Springer-Verlag Berlin Heidelberg 2007.
Cite
CITATION STYLE
Farré, C., Nutt, W., Teniente, E., & Urpí, T. (2006). Containment of conjunctive queries over databases with null values. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4353 LNCS, pp. 389–403). Springer Verlag. https://doi.org/10.1007/11965893_27
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.