Structure and complexity of relational queries
- 1 October 1980
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1 (02725428) , 333-347
- https://doi.org/10.1109/sfcs.1980.41
Abstract
This paper is an attempt at laying the foundations for the classification of queries on relational data bases according to their structure and their computational complexity. Using the operations of composition and fixpoints, a Σ-Π hierarchy of height, ω2, called the fixpoint query hierarchy, is defined, and its properties investigated. The hierarchy includes most of the queries considered in the literature including those of Codd and Aho and Ullman. The hierarchy to level ω characterizes the first-order queries, and the levels up to ω are shown to be strict. Sets of queries larger than the fixpoint query hierarchy are obtained by considering the queries computable in polynomial time, queries computable in polynomial space, etc. It is shown that classes of queries defined from such complexity classes behave (with respect to containment) in a manner very similar to the corresponding complexity classes. Also, the set of second-order queries turns out to be the same as the set of queries defined from the polynomialtime hierarchy. Finally, these classes of queries are used to characterize a set of queries defined from language considerations: those expressible in a programming language with only typed (or ranked) relation variables. At the end of the paper is a list of symbols used therein.Keywords
This publication has 8 references indexed in Scilit:
- Computable queries for relational data basesJournal of Computer and System Sciences, 1980
- Equivalences among Relational ExpressionsSIAM Journal on Computing, 1979
- Universality of data retrieval languagesPublished by Association for Computing Machinery (ACM) ,1979
- Optimal implementation of conjunctive queries in relational data basesPublished by Association for Computing Machinery (ACM) ,1977
- The polynomial-time hierarchyTheoretical Computer Science, 1976
- Monadic generalized spectraMathematical Logic Quarterly, 1975
- A relational model of data for large shared data banksCommunications of the ACM, 1970
- An application of games to the completeness problem for formalized theoriesFundamenta Mathematicae, 1960