Processing conjunctive predicates and queries
Daniel J. Rosenkrantz, Harry B. Hunt · Very Large Data Bases · 1980
Several aspects of relational database systems require the processing of predicates. For example, predicates can be tested for satisfiability (as in processing predicate locks), and predicates occurring in queries may be preprocessed in order to reduce the number of database operations when the query is answered. Here we study predicates consisting of conjunctions of comparisons. First, we consider predicates that are conjunctions of =, , and >= comparisons, where a variable can be compared with a constant or with another variable, possibly offset by a constant. Efficient algorithms are given for satisfiability, equivalence, and minimizing the number of comparisons in a predicate. Second, we show that when unequal comparisons between variables are allowed, satisfiability, equivalence, and minimization are NP-hard. Most approximation problems corresponding to minimization are also NP-hard. The preceding efficient algorithms show that the unequal comparison operation is the sole cause of this complexity.
Cited by 119 works.
Authors
References
- The complexity of theorem-proving procedures
- The notions of consistency and predicate locks in a database system
- System R
- Some simplified NP-complete graph problems
- Functional specifications of a subsystem for data base integrity
- Optimal implementation of conjunctive queries in relational data bases
- An authorization mechanism for a relational database system
- A Distributed Data Base Version of INGRES.
- Equivalences among Relational Expressions
- Interval hierarchies and their application to predicate files