UPDF AI

A Formal Semantics of SQL Queries, Its Validation, and Applications

P. Guagliardo,L. Libkin

2017 · DOI: 10.14778/3151113.3151116
Proceedings of the VLDB Endowment · 75 Citations

TLDR

The first formal proof of the equivalence of basic SQL and relational algebra that extends to bag semantics and nulls is given, and it is proved that three-valued logic employed by SQL does not add expressive power, as every SQL query can be evaluated under the usual two-valued Boolean semantics of conditions.