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

被引:0
作者
Kuznetsov, S. D. [1 ,2 ,3 ,4 ]
机构
[1] Russian Acad Sci, Ivannikov Inst Syst Programming, Moscow 109004, Russia
[2] Lomonosov Moscow State Univ, Moscow, Russia
[3] Moscow Inst Phys & Technol, Dolgoprudnyi 141700, Moscow Oblast, Russia
[4] Natl Res Univ Higher Sch Econ, Moscow 101978, Russia
关键词
relational model; missing data; null value; three-valued logic; typed special values;
D O I
10.1134/S0361768824700257
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:532 / 548
页数:17
相关论文
共 31 条
  • [1] [Anonymous], 2008, ISO/IEC 9075-2
  • [2] [Anonymous], 1989, ISO/IEC9075
  • [3] [Anonymous], 2011, ISO/IEC9075-2
  • [4] [Anonymous], 1999, ISO/IEC9075-2:
  • [5] [Anonymous], 1987, ISO9075
  • [6] [Anonymous], 1990, The Relational Model for Database Management
  • [7] [Anonymous], 1986, ANSI X3.135
  • [8] [Anonymous], 2003, ISO/IEC9075-2
  • [9] [Anonymous], 1992, ISO/IEC9075
  • [10] [Anonymous], 2016, ISO/IEC 9075-2