Title :
On satisfiability, equivalence, and implication problems involving conjunctive queries in database systems
Author :
Guo, Sha ; Sun, Wei ; Weiss, Mark A.
Author_Institution :
Sch. of Comput. Sci., Florida Int. Univ., Miami, FL, USA
Abstract :
Satisfiability, equivalence, and implication problems involving conjunctive queries are important and widely encountered problems in database management systems. These problems need to be efficiently and effectively solved. In this paper, we consider queries which are conjunctions of the inequalities of the form (X op C), (X op Y), and/or (X op Y+C), where X and Y are two attributes, C is a constant, and op ε {<, ⩽, =,≠, >, ⩾}. These types of inequalities are widely used in database systems, since the first type is a selection, the second type is a θ-join, and the third type is a very popular clause in a deductive database system. The satisfiability, equivalence, and implication problems in the integer domain (for attributes and constants) have been shown to be NP-hard. However, we show that these problems can be solved efficiently in the real domain. The incorporation of the real domain is significant, because the real domain is practically and widely used in a database. Necessary and sufficient conditions and algorithms are presented. A novel concept of the “module closure” and a set of sound and complete axioms with respect to the “module closure” are also proposed to infer all correct and necessary inequalities from a given query. The proposed axioms generalize Ullman´s axioms (1989) where queries only consist of θ-joins
Keywords :
computability; computational complexity; deductive databases; distributed databases; query processing; relational databases; conjunctive queries; database systems; deductive database system; equivalence; implication problems; module closure; satisfiability; Application software; Arithmetic; Cost function; Database systems; Deductive databases; Distributed databases; Electrical capacitance tomography; Helium; Relational databases; Sufficient conditions;