Skip to main content

Constraint Databases, Queries, and Query Languages

  • Chapter
Constraint Databases

Abstract

We formally define the constraint database model, the concept of query in this model, and the basic constraint query languages provided by the relational calculus, the relational algebra, and Datalog. We show how a computationally complete constraint query language can be obtained by augmenting the constraint relational calculus with basic programming language features. We look into some basic model-theoretic issues concerning the constraint relational calculus, in particular the equivalence problem. The notion of an o-minimal structure turns out to be a useful abstraction to discuss these issues in some generality. We shall see that equivalence of relational calculus queries on constraint databases is typically undecidable, but that that equivalence is decidable in the special case of conjunctive queries on constraint databases.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Bibliographic Notes

  1. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. In Proceedings of the 9th ACM SIGACT-SIGMODSIGART Symposium on Principles of Database Systems (PODS’90), pages 299–313. ACM Press, 1990.

    Google Scholar 

  2. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. Journal of Computer and System Sciences, 51 (1): 26–52, 1995.

    Article  MathSciNet  Google Scholar 

  3. H. B. Enderton. A Mathematical Introduction to Logic. Academic Press, 1972.

    Google Scholar 

  4. H.-D. Ebbinghaus, J. Flum, and W. Thomas. Mathematical Logic. Undergraduate Texts in Mathematics. Springer-Verlag, 2nd edition, 1994.

    Google Scholar 

  5. C. C. Chang and H. J. Keisler. Model Theory, volume 73 of Studies in Logic and the Foundations of Mathematics. North-Holland, 3rd edition, 1990.

    Google Scholar 

  6. W. A. Hodges. Model Theory. Cambridge University Press, 1993.

    Google Scholar 

  7. S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley, 1995.

    Google Scholar 

  8. A. Tarski. A Decision Method for Elementary Algebra and Geometry. University of California Press, 1951.

    Google Scholar 

  9. L. van den Dries. Alfred Tarski’s elimination theory for real closed fields. Journal of Symbolic Logic (JSL), 53: 7–19, 1988.

    Article  MATH  Google Scholar 

  10. J. Renegar. On the computational complexity and geometry of the first-order theory of the reals, parts I—III. Journal of Symbolic Computation (JSC), 13: 255–352, 1992.

    Article  MathSciNet  MATH  Google Scholar 

  11. B. F. Caviness and J. R. Johnson, editors. Quantifier Elimination and Cylindric Algebraic Decomposition. Texts and Monographs in Symbolic Computation. Springer-Verlag, 1998.

    Google Scholar 

  12. S. Basu. Algorithms in Semi-Algebraic Geometry. PhD thesis, New York University, 1996.

    Google Scholar 

  13. J. E. Hoperoft and J. D. Ullman. Introduction to Automata Theory and Formal Languages. Addison-Wesley, 1979.

    Google Scholar 

  14. L. Berman. The complexity of logical theories. Theoretical Computer Science (TCS), 11: 71–77, 1980.

    Article  MATH  Google Scholar 

  15. J. Ferrante and J. R. Geiser. An efficient decision procedure for the theory of rational order. Theoretical Computer Science (TCS), 4 (2): 227–233, 1977.

    Article  MathSciNet  MATH  Google Scholar 

  16. P. C. Kanellakis, G. M. Kuper, and P. Z. Revesz. Constraint query languages. Journal of Computer and System Sciences, 51 (1): 26–52, 1995.

    Article  MathSciNet  Google Scholar 

  17. J. Bochnak, M. Coste, and M.-F. Roy. Real Algebraic Geometry, volume 36 of Ergebnisse der Mathematik und ihrer Grenzgebiete 3. Folge. Springer-Verlag, 1998.

    Google Scholar 

  18. R. Benedetti and J.-J. Risler. Real algebraic and semi-algebraic sets. Hermann, Editeurs des sciences et des arts, 1990.

    MATH  Google Scholar 

  19. L. van den Dries. Tame Topology and O-minimal Structures Cambridge University Press, 1998.

    Google Scholar 

  20. M. Gyssens, J. Van den Bussche, and D. Van Gucht. Complete geometric query languages. Journal of Computer and System Sciences (JCSS), 58 (3): 483–511, 1999.

    Article  MATH  Google Scholar 

  21. S. Grumbach and J. Su. Finitely representable databases. Journal of Computer and System Sciences (JCSS), 55 (2): 273–298, 1997.

    Article  MathSciNet  MATH  Google Scholar 

  22. O. H. Ibarra and J. Su. On the containment and equivalence of database queries with linear constraints. In Proceedings of the 16th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS’97), pages 32–43. ACM Press, 1997.

    Google Scholar 

Download references

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Van den Bussche, J. (2000). Constraint Databases, Queries, and Query Languages. In: Kuper, G., Libkin, L., Paredaens, J. (eds) Constraint Databases. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-04031-7_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-04031-7_2

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-08542-0

  • Online ISBN: 978-3-662-04031-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics