{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:25:14Z","timestamp":1750220714065,"version":"3.41.0"},"reference-count":14,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2019,12,20]],"date-time":"2019-12-20T00:00:00Z","timestamp":1576800000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["SIGMOD Rec."],"published-print":{"date-parts":[[2019,12,20]]},"abstract":"<jats:p>SQL assertions are a powerful means used to specify cross-row constraints, and have been available in the SQL standard since 1992. Unfortunately, assertions are not supported in commercial database management systems. Although triggers and application programs can be efficiently used to constrain database content, they are more complex to write and more error-prone. The objective of this paper is to analyze whether the use of materialized views could be a viable solution as regards the automatic implementation of SQL assertions. Materialized views are views that physically store the result of a query and are periodically updated. The method consists of defining a materialized view which contains the number of tuples that violate the condition expressed in the assertion. The materialized view will contain a CHECK constraint that guarantees that the number of tuples that violate the assertion is equal to zero. The proposed method is an easy and automatic means of implementing the integrity constraints described using assertions. We have carried out a series of tests, and although triggers perform better than materialized views in most situations, there are some in which materialized views would be an efficient option. They are easily automatable and less error prone than triggers.<\/jats:p>","DOI":"10.1145\/3377391.3377396","type":"journal-article","created":{"date-parts":[[2019,12,23]],"date-time":"2019-12-23T13:01:04Z","timestamp":1577106064000},"page":"23-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Evaluation of an Implementation of Cross-Row Constraints Using Materialized Views"],"prefix":"10.1145","volume":"48","author":[{"given":"Jos\u00e9 Mar\u00eda","family":"Cavero Barca","sequence":"first","affiliation":[{"name":"Rey Juan Carlos University, Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Bel\u00e9n Vela","family":"S\u00e1nchez","sequence":"additional","affiliation":[{"name":"Rey Juan Carlos University, Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Paloma C\u00e1ceres","family":"Garc\u00eda de Marina","sequence":"additional","affiliation":[{"name":"Rey Juan Carlos University, Madrid, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2019,12,20]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"C.J. Date 2015. SQL and Relational Theory: How to Write Accurate SQL Code. Third ed. O'Reilly.  C.J. Date 2015. SQL and Relational Theory: How to Write Accurate SQL Code. Third ed. O'Reilly."},{"key":"e_1_2_1_2_1","doi-asserted-by":"crossref","unstructured":"A. Behrend R. Manthey and B. Pieper 2001. An Amateur's Introduction to Integrity Constraints and Integrity Checking in SQL Datenbanksysteme in B\u00fcro Technik und Wissenschaft. A. Heuer F. Leymann and D. Priebe eds Informatik aktuell. Springer Berlin Heidelberg 405--423.  A. Behrend R. Manthey and B. Pieper 2001. An Amateur's Introduction to Integrity Constraints and Integrity Checking in SQL Datenbanksysteme in B\u00fcro Technik und Wissenschaft. A. Heuer F. Leymann and D. Priebe eds Informatik aktuell. Springer Berlin Heidelberg 405--423.","DOI":"10.1007\/978-3-642-56687-5_29"},{"key":"e_1_2_1_3_1","unstructured":"ANSI Standard 1992. The SQL 92 Standard. http:\/\/savage.net.au\/SQL\/sql-92.bnf.htm  ANSI Standard 1992. The SQL 92 Standard. http:\/\/savage.net.au\/SQL\/sql-92.bnf.htm"},{"volume-title":"SQL 1999: Understanding Relational Language Components, Morgan Kaufmann.","author":"Melton J.","key":"e_1_2_1_4_1"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.5555\/270404.270407"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093754.3093761"},{"key":"e_1_2_1_7_1","unstructured":"Oracle. http:\/\/www.oracle.com  Oracle. http:\/\/www.oracle.com"},{"key":"e_1_2_1_8_1","unstructured":"T. Koppelaars 2016. SQL Assertions \/ Declarative multirow constraints\". https:\/\/community. oracle.com\/ideas\/ 13028.  T. Koppelaars 2016. SQL Assertions \/ Declarative multirow constraints\". https:\/\/community. oracle.com\/ideas\/ 13028."},{"key":"e_1_2_1_9_1","unstructured":"R. Elmasri and S. Navathe 2010. Fundamentals of Database Systems Sixth ed. Addison-Wesley.  R. Elmasri and S. Navathe 2010. Fundamentals of Database Systems Sixth ed. Addison-Wesley."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2008.04.027"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2011.06.044"},{"key":"e_1_2_1_12_1","unstructured":"Oracle Database SQL Language Reference 11g Release 2 (11.2).http:\/\/docs.oracle.com\/cd\/E11882_01\/server.112\/e41 084.pdf  Oracle Database SQL Language Reference 11g Release 2 (11.2).http:\/\/docs.oracle.com\/cd\/E11882_01\/server.112\/e41 084.pdf"},{"key":"e_1_2_1_13_1","unstructured":"P. Lane and P. Potineni 2014. Oracle Database Data Warehousing Guide 12c Release 1 (12.1). Oracle.  P. Lane and P. Potineni 2014. Oracle Database Data Warehousing Guide 12c Release 1 (12.1). Oracle."},{"volume-title":"19th International Conference on Extending Database Technology (EDBT): 632--635","author":"Oriol X.","key":"e_1_2_1_14_1"}],"container-title":["ACM SIGMOD Record"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3377391.3377396","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3377391.3377396","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:33:17Z","timestamp":1750199597000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3377391.3377396"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,12,20]]},"references-count":14,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2019,12,20]]}},"alternative-id":["10.1145\/3377391.3377396"],"URL":"https:\/\/doi.org\/10.1145\/3377391.3377396","relation":{},"ISSN":["0163-5808"],"issn-type":[{"type":"print","value":"0163-5808"}],"subject":[],"published":{"date-parts":[[2019,12,20]]},"assertion":[{"value":"2019-12-20","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}