The DOI matches its Crossref record.
SQL’s Three-Valued Logic and Certain Answers
Open accessAbstract
The goal of the article is to bridge the difference between theoretical and practical approaches to answering queries over databases with nulls. Theoretical research has long ago identified the notion of correctness of query answering over incomplete data: one needs to find certain answers, which are true regardless of how incomplete information is interpreted. This serves as the notion of correctness of query answering, but carries a huge complexity tag. In practice, on the other hand, query answering must be very efficient, and to achieve this, SQL uses three-valued logic for evaluating queries on databases with nulls. Due to the complexity mismatch, the two approaches cannot coincide, but perhaps they are related in some way. For instance, does SQL always produce answers we can be certain about? This is not so: SQL’s and certain answers semantics could be totally unrelated. We show, however, that a slight modification of the three-valued semantics for relational calculus queries can provide the required certainty guarantees. The key point of the new scheme is to fully utilize the three-valued semantics, and classify answers not into certain or noncertain, as was done before, but rather into certainly true, certainly false, or unknown. This yields relatively small changes to the evaluation procedure, which we consider at the level of both declarative (relational calculus) and procedural (relational algebra) queries. These new evaluation procedures give us certainty guarantees even for queries returning tuples with null values.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
No references could be resolved yet.
Research works printed but not linked: 25
- 10.1145/275487.275516 · DOI
- Abiteboul Serge, Foundations of Databases
- 10.1016/0304-3975(51)90007-2 · DOI
- Arenas Marcelo, Foundations of Data Exchange
- 10.1016/j.websem.2012.03.001 · DOI
- 10.1007/s10817-007-9078-x · DOI
- 10.2307/2273560 · DOI
- 10.1145/202660.202667 · DOI
- Chris, 1996, Date and Hugh Darwen
- 10.1145/382274.382401 · DOI
- 10.1145/2691190.2691194 · DOI
- 10.1145/2274576.2274595 · DOI
- Laura M. Haas Mauricio A. Hernández Howard Ho Lucian Popa and Mary Roth. 2005. Clio grows up: From research prototype to industrial tool. In SIGMOD. 805--810. Laura M. Haas Mauricio A. Hernández Howard Ho Lucian Popa and Mary Roth. 2005. Clio grows up: From research prototype to industrial tool. In SIGMOD. 805--810. · DOI
- 10.1145/1634.1886 · DOI
- 10.1145/187436.187445 · DOI
- Klein Hans-Joachim, Fundamentals of Information Systems, Torsten Polle, Torsten Ripke, and Klaus-Dieter Schewe (Eds.)
- 10.1145/543613.543644 · DOI
- Libkin Leonid, 2014, Proceedings of the ACM Symposium on Principles of Database Systems (PODS). 1--13
- 10.1145/320083.320088 · DOI
- Lipski Witold, 1984, Proceedings of the ACM Symposium on Principles of Database Systems (PODS). 201--203
- 10.14778/3402755.3402790 · DOI
- 10.1016/0022-0000(78)90043-0 · DOI
- R. Reiter. 1977. On closed world data bases. In Logic and Data Bases. 55--76. R. Reiter. 1977. On closed world data bases. In Logic and Data Bases. 55--76. · DOI
- 10.1145/5383.5388 · DOI
- 10.1145/126482.126487 · DOI
Cited by
Design and implementation of the LogicBlox system
Aref, M., ten Cate, B., Green, T. J., Kimelfeld, B., Olteanu, D., Pasalic, E., Veldhuizen, T. L., & Washburn, G. (2015) · Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2723372.2742796 · Cited by 233
Metadata
- Authors
- Libkin, L.
- Affiliations
- University of Edinburgh (GB)
- Corresponding author
- Libkin, Leonid
- ORCID
- Libkin, Leonid
- Venue
- ACM Transactions on Database Systems
- Published
- 2016-03-18
- Volume
- 41
- Issue
- 1
- Pages
- 1-28
- ISSN
- 0362-5915 (ISSN-L)
- 1557-4644
- OpenAlex
- W2297697128
- Cited by
- 83
- References
- 0
- Citations by year
- 2026: 2 · 2025: 2 · 2024: 4 · 2023: 7 · 2022: 4 · 2021: 10 · 2020: 8 · 2019: 8 · 2018: 14 · 2017: 9 · 2016: 4
- FWCI
- 9.96
- Type
- journal article
- Language
- en
- Open access
- green
- drops.dagstuhl.de
- Locations
- ACM Transactions on Database Systems (publishedVersion)
- DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) (submittedVersion, cc-by)
- Edinburgh Research Explorer (University of Edinburgh) (submittedVersion, other-oa)
- Edinburgh Research Explorer (University of Edinburgh) (submittedVersion, cc-by)
- Leibniz international proceedings in informatics (cc-by)
- Funders
- EPSRC (J015377 and M025268)
- Topics
- Physical Sciences › Computer Science › Information Systems › Advanced Database Systems and Queries
- Physical Sciences › Computer Science › Artificial Intelligence › Logic, Reasoning, and Knowledge
- Physical Sciences › Computer Science › Software › Logic, programming, and type systems
- Keywords
- ternary logic, certain answers, SQL, null values, missing data, query answering, relational calculus, relational algebra, query processing
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: SQL’s Three-Valued Logic and Certain Answers. https://app.cochat.ai/papers/10.1145/2877206
- The paper
- Libkin, L. (2016). SQL’s Three-Valued Logic and Certain Answers. ACM Transactions on Database Systems. https://doi.org/10.1145/2877206
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.