Skip to main content

Formal semantics of SQL

  • Chapter
  • First Online:
An Extended Entity-Relationship Model

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 767))

Abstract

Correctness proofs; understanding of query language constructs and query language properties; equivalence of queries; relational core of SQL; SQL queries with UNION; SQL queries following the SELECT FROM WHERE schema; search conditions; EXISTS, ANY, ALL, and IN subqueries; duplicates in results; general requirements for SQL core queries; semantic equations for SQL core queries; example for translating an SQL query to the calculus; comparison to standard SQL; grouping; aggregation; SQL queries with GROUP BY and HAVING; general requirements for SQL queries with aggregation and grouping; context-sensitive conditions for GROUP BY queries; semantic equations for SQL queries with aggregation and grouping; example for translating an SQL query with GROUP BY to the calculus; basic property of the FROM clause; properties of IN, ALL, ANY, and EXISTS; unnesting of SQL queries; antitheorem: ALL versus ANY.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Martin Gogolla

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

(1994). Formal semantics of SQL. In: Gogolla, M. (eds) An Extended Entity-Relationship Model. Lecture Notes in Computer Science, vol 767. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-57648-7_11

Download citation

  • DOI: https://doi.org/10.1007/3-540-57648-7_11

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57648-8

  • Online ISBN: 978-3-540-48301-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics