DBAILOFeb 22, 2022

Relational Algebra and Calculus with SQL Null Values

arXiv:2202.10898v1
Originality Synthesis-oriented
AI Analysis

This provides a formal foundation for handling nulls in SQL, addressing a long-standing issue in database theory, but it is incremental as it builds on existing relational model concepts.

The paper tackles the problem of logically characterizing SQL null values in databases by extending relational algebra and proposing two domain relational calculi, proving their equivalence with the algebra to extend Codd's theorem.

The logic of nulls in databases has been subject of investigation since their introduction in Codd's Relational Model, which is the foundation of the SQL standard. We show a logical characterisation of a first-order fragment of SQL with null values, by first focussing on a simple extension with null values of standard relational algebra, which captures exactly the SQL fragment, and then proposing two different domain relational calculi, in which the null value is a term of the language but it does not appear as an element of the semantic interpretation domain of the logics. In one calculus, a relation can be seen as a set of partial tuples, while in the other (equivalent) calculus, a relation is horizontally decomposed as a set of relations each one holding regular total tuples. We extend Codd's theorem by proving the equivalence of the relational algebra with both domain relational calculi in presence of SQL null values.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes