Research work · 2017

Correctness of SQL Queries on Databases with Nulls

Paolo Guagliardo, Leonid O. Libkin

ACM SIGMOD Record

Abstract

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

Download PDF

DOI: 10.1145/3156655.3156657