The containment problem for real conjunctive queries with inequalities

TS Jayram, PG Kolaitis, E Vee - Proceedings of the twenty-fifth ACM …, 2006 - dl.acm.org
Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on …, 2006dl.acm.org
Query containment is a fundamental algorithmic problem in database query processing and
optimization. Under set semantics, the query-containment problem for conjunctive queries
has long been known to be NP-complete. In real database systems, however, queries are
usually evaluated under bag semantics, not set semantics. In particular, SQL queries are
evaluated under bag semantics and return multisets as answers, since duplicates are not
eliminated unless explicitly requested. The exact complexity of the query-containment …
Query containment is a fundamental algorithmic problem in database query processing and optimization. Under set semantics, the query-containment problem for conjunctive queries has long been known to be NP-complete. In real database systems, however, queries are usually evaluated under bag semantics, not set semantics. In particular, SQL queries are evaluated under bag semantics and return multisets as answers, since duplicates are not eliminated unless explicitly requested. The exact complexity of the query-containment problem for conjunctive queries under bag semantics has been an open problem for more than a decade; in fact, it is not even known whether this problem is decidable.Here, we investigate, under bag semantics, the query-containment problem for conjunctive queries with inequalities. It has been previously shown that, under set semantics, this problem is complete for the second level of the polynomial hierarchy. Our main result asserts that, under bag semantics, the query-containment problem for conjunctive queries with inequalities is undecidable. Actually, we establish the stronger result that this problem is undecidable even if the following two restrictions hold at the same time: (1) the queries use just a single binary relation; and (2) the total number of inequalities is bounded by a certain fixed value. Moreover, the same undecidability results hold under bag-set semantics.
ACM Digital Library
以上显示的是最相近的搜索结果。 查看全部搜索结果