Relational Algebra and Calculus with SQL Null Values

02/22/2022
by   Enrico Franconi, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/16/2022

Translating Canonical SQL to Imperative Code in Coq

SQL is by far the most widely used and implemented query language. Yet, ...
research
08/25/2019

Proximity-based equivalence classes in fuzzy relational database model

One of the first attempts to set a solid theoretical foundation for exte...
research
12/03/2017

Polystore Mathematics of Relational Algebra

Financial transactions, internet search, and data analysis are all placi...
research
11/17/2014

Verification of Relational Multiagent Systems with Data Types (Extended Version)

We study the extension of relational multiagent systems (RMASs), where a...
research
10/15/2012

Relational Theories with Null Values and Non-Herbrand Stable Models

Generalized relational theories with null values in the sense of Reiter ...
research
03/03/2011

First-order Logic: Modality and Intensionality

Contemporary use of the term 'intension' derives from the traditional lo...
research
03/05/2018

Universal (and Existential) Nulls

Incomplete Information research is quite mature when it comes to so call...

Please sign up or login with your details

Forgot password? Click here to reset