Correctness of SQL Queries on Databases with Nulls

被引:11
作者
Guagliardo, Paolo [1 ]
Libkin, Leonid [1 ]
机构
[1] Univ Edinburgh, Sch Informat, Edinburgh, Midlothian, Scotland
基金
英国工程与自然科学研究理事会;
关键词
Algebra;
D O I
10.1145/3156655.3156657
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Multiple issues with SQL's handling of nulls have been well documented. Having efficiency as its main goal, SQL disregards the standard notion of correctness on incomplete databases - certain answers - due to its high complexity. As a result, the evaluation of SQL queries on databases with nulls may produce answers that are just plain wrong. However, SQL evaluation can be modified, at least for relational algebra queries, to approximate certain answers, i.e., return only correct answers. We examine recently proposed approximation schemes for certain answers and analyze their complexity, both theoretical bounds and real-life behavior.
引用
收藏
页码:5 / 16
页数:12
相关论文
共 34 条
[1]  
Abiteboul S, 1995, FDN DATABASES
[2]  
[Anonymous], 2002, P ACM SIGACT SIGMOD, DOI DOI 10.1145/543613.543644
[3]  
[Anonymous], 1991, Theor. Comput. Sci
[4]  
Arenas M., 2014, Foundations of Data Exchange
[5]  
Celko J., 1995, SQL SMARTIES ADV SQL
[6]   Optimization and evaluation of disjunctive queries [J].
Claussen, J ;
Kemper, A ;
Moerkotte, G ;
Peithner, K ;
Steinbrunn, M .
IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2000, 12 (02) :238-260
[7]  
Codd E. F., 1995, RELATIONAL DATABASE
[8]  
Coelho Fabien, DATAFILLER GENERATE
[9]  
Console M, 2017, PROCEEDINGS OF THE TWENTY-SIXTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, P993
[10]  
Date C.J., 1996, A Guide to the SQL Standard, V4th