On conjunctive queries containing inequalities

Anthony C. Klug

Journal of the ACM · 1988 · 296 citations · 12 references

DOIFull text

Open access

Concepts

TL;DR

Conjunctive queries are extended to allow inequality comparisons, and while general containment lacks homomorphisms, certain subclasses retain the homomorphism property. Algorithms for containment and equivalence of inequality queries over dense, totally ordered domains are presented, along with a minimization algorithm that uses the equivalence procedure. The study identifies essential versus nonessential constants in a query and shows that the minimal query can be nondeterministically guessed using only the essential constants.

Abstract

Conjunctive queries are generalized so that inequality comparisons can be made between elements of the query. Algorithms for containment and equivalence of such “inequality queries” are given, under the assumption that the data domains are dense and totally ordered. In general, containment does not imply the existence of homomorphisms (containment mappings), but the homomorphism property does exist for subclasses of inequality queries. A minimization algorithm is defined using the equivalence algorithm. It is first shown that the constants appearing in a query can be divided into “essential” and “nonessential” subgroups. The minimum query can be nondeterministically guessed using only the essential constants of the original query.

References

12