Typed Unknown Values: A Step towards Solving the Problem of Missing Data Representation in Relational Databases

The state of affairs in the field of missing data management in relational databases leaves much to be desired. The SQL standard uses the universal null value to represent missing data, and the management is based on three-valued logic, in which the null value is identified with the third Boolean value. This solution is conceptually inconsistent and often results in DBMS behavior that is not intuitive. An alternative approach based on typed special values leaves all handling of missing data to users. In this paper, we analyze the long history of research and development that led to this situation. We come to the conclusion that no other solution could have appeared in the SQL standard because of the choice of the mechanism of universal null value more than 50 years ago, whereas the alternative mechanism cannot provide system support for special values due to the use of two-valued logic. We propose a combined approach using typed special values based on three-valued logic. This approach allows one to use the semantics of data types when processing queries with conditions that involve unknown data. In addition, our approach makes it possible to define a full-fledged three-valued logic in which a special value of the Boolean type is the third Boolean value.

Authors

Institutions

Publication Details

Journal
Programming and Computer Software
Published
2024-12-01
DOI
https://doi.org/10.1134/s0361768824700257
Primary Topic
Advanced Database Systems and Queries
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Typed Unknown Values: A Step towards Solving the Problem of Missing Data Representation in Relational Databases

Сергей Кузнецов
Programming and Computer Software
Advanced Database Systems and Queries
article

Typed Unknown Values: A Step towards Solving the Problem of Missing Data Representation in Relational Databases

Сергей Кузнецов
article en

Abstract

The state of affairs in the field of missing data management in relational databases leaves much to be desired. The SQL standard uses the universal null value to represent missing data, and the management is based on three-valued logic, in which the null value is identified with the third Boolean value. This solution is conceptually inconsistent and often results in DBMS behavior that is not intuitive. An alternative approach based on typed special values leaves all handling of missing data to users. In this paper, we analyze the long history of research and development that led to this situation. We come to the conclusion that no other solution could have appeared in the SQL standard because of the choice of the mechanism of universal null value more than 50 years ago, whereas the alternative mechanism cannot provide system support for special values due to the use of two-valued logic. We propose a combined approach using typed special values based on three-valued logic. This approach allows one to use the semantics of data types when processing queries with conditions that involve unknown data. In addition, our approach makes it possible to define a full-fledged three-valued logic in which a special value of the Boolean type is the third Boolean value.

Programming and Computer SoftwareVol. 50(7)
National Research University Higher School of Economics (RU), Moscow Institute of Physics and Technology (RU), Lomonosov Moscow State University (RU), Institute for System Programming (RU)
Reduced inequalities
Openalex Percentile: Top 75%
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.