Abstract

A relational query is called finite, or sometimes safe, iff it yields a finite answer in every database state. The set of finite queries of relational calculus is known to be unsolvable. However, in many cases it is possible to impose syntactical restrictions on the class of queries that guarantee finiteness and do not reduce the expressive power of the calculus. We show that unfortunately this is not always the case, as we construct a recursive domain with decidable theory where any solvable (or enumerable, for that matter) subclass of queries either contains an infinite query, or misses a finite one. We show that, although any domain can always be extended to a domain with an effective syntax for finite queries, such extensions of our domain necessarily have undecidable theories. The reason decidability of domain matters is that this property is, in effect, equivalent to the ability to answer queries effectively. Using the same example, we further show undecidability of the problem of relative finiteness, which is, given a query and a database state, to decide upon finiteness of the query in this state. This settles two long-standing open problems in the theory of relational databases.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.