{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,11,7]],"date-time":"2025-11-07T09:09:59Z","timestamp":1762506599791},"reference-count":43,"publisher":"Association for Computing Machinery (ACM)","issue":"11","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2015,7]]},"abstract":"<jats:p>Driven by the dominance of the relational model, the requirements of modern applications, and the veracity of data, we revisit the fundamental notion of a key in relational databases with NULLs. In SQL database systems primary key columns are NOT NULL by default. NULL columns may occur in unique constraints which only guarantee uniqueness for tuples which do not feature null markers in any of the columns involved, and therefore serve a different function than primary keys. We investigate the notions of possible and certain keys, which are keys that hold in some or all possible worlds that can originate from an SQL table, respectively. Possible keys coincide with the unique constraint of SQL, and thus provide a semantics for their syntactic definition in the SQL standard. Certain keys extend primary keys to include NULL columns, and thus form a sufficient and necessary condition to identify tuples uniquely, while primary keys are only sufficient for that purpose. In addition to basic characterization, axiomatization, and simple discovery approaches for possible and certain keys, we investigate the existence and construction of Armstrong tables, and describe an indexing scheme for enforcing certain keys. Our experiments show that certain keys with NULLs do occur in real-world databases, and that related computational problems can be solved efficiently. Certain keys are therefore semantically well-founded and able to maintain data quality in the form of Codd's entity integrity rule while handling the requirements of modern applications, that is, higher volumes of incomplete data from different formats.<\/jats:p>","DOI":"10.14778\/2809974.2809975","type":"journal-article","created":{"date-parts":[[2015,7,30]],"date-time":"2015-07-30T14:37:34Z","timestamp":1438267054000},"page":"1118-1129","source":"Crossref","is-referenced-by-count":22,"title":["Possible and certain SQL keys"],"prefix":"10.14778","volume":"8","author":[{"given":"Henning","family":"K\u00f6hler","sequence":"first","affiliation":[{"name":"Massey University, Palmerston Nth, New Zealand"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Sebastian","family":"Link","sequence":"additional","affiliation":[{"name":"The University of Auckland, Auckland, New Zealand"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xiaofang","family":"Zhou","sequence":"additional","affiliation":[{"name":"The University of Queensland, Brisbane, Australia; and Soochow University, Suzhou, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2018,10,5]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.5555\/551350"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/325405.325439"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/303976.303983"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2463676.2465279"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2422.322414"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.5555\/2371212"},{"key":"e_1_2_1_7_1","volume-title":"Security in Computing Systems - Challenges, Approaches and Solutions","author":"Biskup J.","year":"2009","unstructured":"J. Biskup . Security in Computing Systems - Challenges, Approaches and Solutions . Springer , 2009 . J. Biskup. Security in Computing Systems - Challenges, Approaches and Solutions. Springer, 2009."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-19069-3_8"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-36926-1_27"},{"key":"e_1_2_1_10_1","first-page":"1003","volume-title":"AAAI","author":"Calvanese D.","year":"2014","unstructured":"D. Calvanese , W. Fischl , R. Pichler , E. Sallinger , and M. Simkus . Capturing relational schemas and functional dependencies in RDFS . In AAAI , pages 1003 -- 1011 , 2014 . D. Calvanese, W. Fischl, R. Pichler, E. Sallinger, and M. Simkus. Capturing relational schemas and functional dependencies in RDFS. In AAAI, pages 1003--1011, 2014."},{"key":"e_1_2_1_11_1","volume-title":"Version 2","author":"Codd E. F.","year":"1990","unstructured":"E. F. Codd . The Relational Model for Database Management , Version 2 . Addison-Wesley , 1990 . E. F. Codd. The Relational Model for Database Management, Version 2. Addison-Wesley, 1990."},{"key":"e_1_2_1_12_1","unstructured":"S. Doherty. The future of enterprise data. http:\/\/insights.wired.com\/profiles\/blogs\/the-future-of-enterprise-data#axzz2owCB8FFn 2013.  S. Doherty. The future of enterprise data. http:\/\/insights.wired.com\/profiles\/blogs\/the-future-of-enterprise-data#axzz2owCB8FFn 2013."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539793250299"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/319587.319592"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/322344.322347"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1O16\/j.tcs.2004.10.033"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.14778\/1454159.1454220"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-011-0239-5"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/bxq073"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1538909.1538912"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2188349.2188355"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.14778\/2732240.2732248"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/2588555.2593683"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007641"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1376916.1376934"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-11558-0_13"},{"key":"e_1_2_1_27_1","volume-title":"Possible and certain SQL keys. CDMTCS-452","author":"K\u00f6hler H.","year":"2013","unstructured":"H. K\u00f6hler , U. Leck , S. Link , and X. Zhou . Possible and certain SQL keys. CDMTCS-452 , The University of Auckland , 2013 . H. K\u00f6hler, U. Leck, S. Link, and X. Zhou. Possible and certain SQL keys. CDMTCS-452, The University of Auckland, 2013."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2745754.2745769"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(98)80029-7"},{"issue":"2","key":"e_1_2_1_30_1","first-page":"113","article-title":"A generalisation of entity and referential integrity","volume":"35","author":"Levene M.","year":"2001","unstructured":"M. Levene and G. Loizou . A generalisation of entity and referential integrity . ITA , 35 ( 2 ): 113 -- 127 , 2001 . M. Levene and G. Loizou. A generalisation of entity and referential integrity. ITA, 35(2):113--127, 2001.","journal-title":"ITA"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/322307.322311"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2010.197"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.5555\/140553"},{"key":"e_1_2_1_34_1","volume-title":"2003 (SQL\/foundation). ISO standard","author":"Melton J.","year":"2003","unstructured":"J. Melton . ISO\/ IEC 9075-2 : 2003 (SQL\/foundation). ISO standard , 2003 . J. Melton. ISO\/IEC 9075-2: 2003 (SQL\/foundation). ISO standard, 2003."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2590989.2590995"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/2588555.2593674"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/233269.233361"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2014.6816764"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/800133.804350"},{"key":"e_1_2_1_40_1","first-page":"691","volume-title":"VLDB","author":"Sismanis Y.","year":"2006","unstructured":"Y. Sismanis , P. Brown , P. J. Haas , and B. Reinwald . GORDIAN: Efficient and scalable discovery of composite keys . In VLDB , pages 691 -- 702 , 2006 . Y. Sismanis, P. Brown, P. J. Haas, and B. Reinwald. GORDIAN: Efficient and scalable discovery of composite keys. In VLDB, pages 691--702, 2006."},{"issue":"1","key":"e_1_2_1_41_1","first-page":"11","article-title":"On semantic issues connected with keys in relational databases permitting null values","volume":"25","author":"Thalheim B.","year":"1989","unstructured":"B. Thalheim . On semantic issues connected with keys in relational databases permitting null values . Elektr. Informationsverarb. Kybern. , 25 ( 1\/2 ): 11 -- 20 , 1989 . B. Thalheim. On semantic issues connected with keys in relational databases permitting null values. Elektr. Informationsverarb. Kybern., 25(1\/2):11--20, 1989.","journal-title":"Elektr. Informationsverarb. Kybern."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(84)90080-1"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2213836.2213920"}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/2809974.2809975","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T10:46:17Z","timestamp":1672224377000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/2809974.2809975"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2015,7]]},"references-count":43,"journal-issue":{"issue":"11","published-print":{"date-parts":[[2015,7]]}},"alternative-id":["10.14778\/2809974.2809975"],"URL":"https:\/\/doi.org\/10.14778\/2809974.2809975","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2015,7]]}}}