{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T05:56:20Z","timestamp":1790747780518,"version":"4.1.0"},"reference-count":27,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2016,3,18]],"date-time":"2016-03-18T00:00:00Z","timestamp":1458259200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100000266","name":"EPSRC","doi-asserted-by":"crossref","award":["J015377 and M025268"],"award-info":[{"award-number":["J015377 and M025268"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2016,4,7]]},"abstract":"<jats:p>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?<\/jats:p>\n          <jats:p>This is not so: SQL\u2019s 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.<\/jats:p>","DOI":"10.1145\/2877206","type":"journal-article","created":{"date-parts":[[2016,3,18]],"date-time":"2016-03-18T13:50:44Z","timestamp":1458309044000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":36,"title":["SQL\u2019s Three-Valued Logic and Certain Answers"],"prefix":"10.1145","volume":"41","author":[{"given":"Leonid","family":"Libkin","sequence":"first","affiliation":[{"name":"School of Informatics, University of Edinburgh, United Kingdom"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2016,3,18]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275516"},{"key":"e_1_2_1_2_1","volume-title":"Foundations of Databases","author":"Abiteboul Serge"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(51)90007-2"},{"key":"e_1_2_1_4_1","volume-title":"Foundations of Data Exchange","author":"Arenas Marcelo"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2012.03.001"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-007-9078-x"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.2307\/2273560"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/202660.202667"},{"key":"e_1_2_1_9_1","unstructured":"Chris J. Date. 2005. Database in Depth: Relational Theory for Practitioners. O\u2019Reilly. I--XVIII 1--208.  Chris J. Date. 2005. Database in Depth: Relational Theory for Practitioners. O\u2019Reilly. I--XVIII 1--208."},{"key":"e_1_2_1_10_1","volume-title":"Date and Hugh Darwen","author":"Chris","year":"1996"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/382274.382401"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2691190.2691194"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/2274576.2274595"},{"key":"e_1_2_1_14_1","doi-asserted-by":"crossref","unstructured":"Laura M. Haas Mauricio A. Hern\u00e1ndez 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\u00e1ndez Howard Ho Lucian Popa and Mary Roth. 2005. Clio grows up: From research prototype to industrial tool. In SIGMOD. 805--810.","DOI":"10.1145\/1066157.1066252"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1634.1886"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/187436.187445"},{"key":"e_1_2_1_17_1","volume-title":"Fundamentals of Information Systems, Torsten Polle, Torsten Ripke, and Klaus-Dieter Schewe (Eds.)","author":"Klein Hans-Joachim"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/543613.543644"},{"key":"e_1_2_1_19_1","unstructured":"Leonid Libkin. 2014a. Certain answers as objects and knowledge. In Principles of Knowledge Representation and Reasoning (KR). 328--337.  Leonid Libkin. 2014a. Certain answers as objects and knowledge. In Principles of Knowledge Representation and Reasoning (KR). 328--337."},{"key":"e_1_2_1_20_1","volume-title":"Proceedings of the ACM Symposium on Principles of Database Systems (PODS). 1--13","author":"Libkin Leonid","year":"2014"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/320083.320088"},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the ACM Symposium on Principles of Database Systems (PODS). 201--203","author":"Lipski Witold","year":"1984"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.14778\/3402755.3402790"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90043-0"},{"key":"e_1_2_1_25_1","doi-asserted-by":"crossref","unstructured":"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.1007\/978-1-4684-3384-5_3"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/5383.5388"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/126482.126487"}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2877206","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2877206","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:39:10Z","timestamp":1750221550000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2877206"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2016,3,18]]},"references-count":27,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2016,4,7]]}},"alternative-id":["10.1145\/2877206"],"URL":"https:\/\/doi.org\/10.1145\/2877206","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2016,3,18]]},"assertion":[{"value":"2015-04-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2015-10-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2016-03-18","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}