1. Correctness of SQL Queries on Databases with Nulls
- Author
-
Leonid Libkin and Paolo Guagliardo
- Subjects
SQL ,Theoretical computer science ,Correctness ,Database ,Computer science ,InformationSystems_DATABASEMANAGEMENT ,0102 computer and information sciences ,02 engineering and technology ,Relational algebra ,computer.software_genre ,01 natural sciences ,Null (SQL) ,010201 computation theory & mathematics ,020204 information systems ,0202 electrical engineering, electronic engineering, information engineering ,Query by Example ,computer ,Software ,Information Systems ,computer.programming_language - 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
- Published
- 2017
- Full Text
- View/download PDF