Abstract
We study the query language BQL: the extension of the relational algebra with for-loops. We also study FO(FOR): the extension of first-order logic with a for-loop variant of the partial fixpoint operator. In contrast to the known situation with query languages which include while-loops instead of for-loops, BQL and FO(FOR) are not equivalent. Among the topics we investigate are: the precise relationship between BQL and FO(FOR); inflationary versus non-inflationary iteration; the relationship with logics that have the ability to count; and nested versus unnested loops.
Research Assistant of the Fund for Scientific Research, Flanders.
Research begun at RWTH Aachen, supported by a German Research Council DFG grant, continued at the University of Warsaw, supported by the Polish Research Council KBN grant 8 T11C 002 11, and on leave at the University of New South Wales, supported by the Australian Research Council ARC grant A 49800112 (1998-2000).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley, 1995.
S. Abiteboul and V. Vianu. Computing with first-order logic. Journal of Computer and System Sciences, 50(2):309–335, 1995.
A. Chandra and D. Harel. Structure and complexity of relational queries. Journal of Computer and System Sciences, 25(1):99–128 1982.
A. Chandra. Programming primitives for database languages. In Conference Record, 8th ACM Symposium on Principles of Programming Languages, pages 50–62 1981.
A. Chandra. Theory of database queries. In Proceedings of the Seventh ACM Symposium on Principles of Database Systems, pages 1–9. ACM Press, 1988.
H.-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer, 1995.
H.-D. Ebbinghaus, J. Flum, and W. Thomas. Mathematical Logic. Undergraduate Texts in Mathematics. Springer-Verlag, second edition 1994.
E. Grädel and M. Otto. Inductive definability with counting on finite structures. In E. Börger, editor, Computer Science Logic, volume 702 of Lecture Notes in Computer Science, pages 231–247. Springer-Verlag, 1993.
L. Hella, Ph. G. Kolaitis, and K. Luosto. Almost everywhere equivalence of logics in finite model theory. Bulletin of Symbolic Logic, 2(4):422–443 1996.
Ph. G. Kolaitis and Jouko A. Väänänen. Generalized quantifiers and pebble games on finite structures. Annals of Pure and Applied Logic, 74(1):23–75, 1995.
M. Otto. The expressive power of fixed-point logic with counting. Journal of Symbolic Logic, 61(1):147–176 1996.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1999 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Neven, F., Otto, M., Tyszkiewicz, J., Van den Bussche, J. (1999). Adding For-Loops to First-Order Logic. In: Beeri, C., Buneman, P. (eds) Database Theory — ICDT’99. ICDT 1999. Lecture Notes in Computer Science, vol 1540. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-49257-7_5
Download citation
DOI: https://doi.org/10.1007/3-540-49257-7_5
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65452-0
Online ISBN: 978-3-540-49257-3
eBook Packages: Springer Book Archive