{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,30]],"date-time":"2025-06-30T12:10:06Z","timestamp":1751285406506,"version":"3.41.0"},"reference-count":58,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2011,5,1]],"date-time":"2011-05-01T00:00:00Z","timestamp":1304208000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000145","name":"Division of Information and Intelligent Systems","doi-asserted-by":"publisher","award":["IIS-0917333"],"award-info":[{"award-number":["IIS-0917333"]}],"id":[{"id":"10.13039\/100000145","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2011,5]]},"abstract":"<jats:p>\n            Most data stream management systems are based on extensions of the relational data model and query languages, but rigorous analyses of the problems and limitations of this approach, and how to overcome them, are still wanting. In this article, we elucidate the interaction between stream-oriented extensions of the relational model and continuous query language constructs, and show that the resulting expressive power problems are even more serious for data streams than for databases. In particular, we study the loss of expressive power caused by the loss of blocking query operators, and characterize nonblocking queries as monotonic functions on the database. Thus we introduce the notion of\n            <jats:italic>NB<\/jats:italic>\n            -completeness to assure that a query language is as suitable for continuous queries as it is for traditional database queries. We show that neither RA nor SQL are\n            <jats:italic>NB<\/jats:italic>\n            -complete on unordered sets of tuples, and the problem is even more serious when the data model is extended to support order\u2014a sine-qua-non in data stream applications. The new limitations of SQL, compounded with well-known problems in applications such as sequence queries and data mining, motivate our proposal of extending the language with user-defined aggregates (UDAs). These can be natively coded in SQL, according to simple syntactic rules that set nonblocking aggregates apart from blocking ones. We first prove that SQL with UDAs is Turing complete. We then prove that SQL with monotonic UDAs and union operators can express all monotonic set functions computable by a Turing machine (\n            <jats:italic>NB<\/jats:italic>\n            -completeness) and finally extend this result to queries on sequences ordered by their timestamps. The proposed approach supports data stream models that are more sophisticated than append-only relations, along with data mining queries, and other complex applications.\n          <\/jats:p>","DOI":"10.1145\/1966385.1966386","type":"journal-article","created":{"date-parts":[[2011,6,6]],"date-time":"2011-06-06T11:51:38Z","timestamp":1307361098000},"page":"1-32","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":23,"title":["Relational languages and data models for continuous queries on sequences and data streams"],"prefix":"10.1145","volume":"36","author":[{"given":"Yan-Nei","family":"Law","sequence":"first","affiliation":[{"name":"Bioinformatics Institute, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Haixun","family":"Wang","sequence":"additional","affiliation":[{"name":"Microsoft Research Asia, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Carlo","family":"Zaniolo","sequence":"additional","affiliation":[{"name":"University of California Los Angeles"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2011,6,2]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley.   Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley."},{"volume-title":"Proceedings of the International Conference on Database Programming Languages (DBPL). 1--19","author":"Arasu A.","key":"e_1_2_1_2_1"},{"volume-title":"Proceedings of the International Conference on Very large Database (VLDB). 336--347","author":"Arasu A.","key":"e_1_2_1_3_1"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/543613.543615"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/1183614.1183664"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1109\/MIC.2008.133"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1142\/S0218843099000150"},{"volume-title":"Proceedings of the International Conference on Very large Databases (VLDB).","author":"Carney D.","key":"e_1_2_1_9_1"},{"key":"e_1_2_1_10_1","unstructured":"Celko J. 1995. SQL for Smarties. Morgan Kaufmann Chapter Advanced SQL Programming.   Celko J. 1995. SQL for Smarties. Morgan Kaufmann Chapter Advanced SQL Programming."},{"volume-title":"Proceedings of the International Conference on Very large Databases (VLDB).","author":"Chandrasekaran S.","key":"e_1_2_1_11_1"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/342009.335432"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/564691.564777"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/776985.776986"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.5555\/1315451.1315495"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066232"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/1783534.1783551"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2008.4497566"},{"volume-title":"Proceedings of Workshop on Research Issues on Data Mining and Knowledge Discovery (DMKD). 27--33","author":"Han J.","key":"e_1_2_1_19_1"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1009816913055"},{"key":"e_1_2_1_21_1","unstructured":"ISO\/IEC. 2003. Database languages\u2014sql iso\/iec 9075-&ast;:2003.  ISO\/IEC. 2003. Database languages\u2014sql iso\/iec 9075-&ast;:2003."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/212433.220201"},{"volume-title":"Proceedings of the International Conference on Very large Databases (VLDB). 1079--1088","author":"Johnson T.","key":"e_1_2_1_23_1"},{"volume-title":"Proceedings of the International Conference on Data Engineering (ICDE). 341--352","author":"Kang J.","key":"e_1_2_1_24_1"},{"volume-title":"Proceedings of the International Conference on Management of Data (COMAD). 70--82","author":"Kr\u00e4mer J.","key":"e_1_2_1_25_1"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1508857.1508861"},{"key":"e_1_2_1_27_1","unstructured":"Krishnan R. and Goldstein J. 2010. Microsoft streaminsight: A hitchhiker's guide to Microsoft streaminsight queries. www.microsoft.com\/download\/8\/9\/C\/89C4DB34-6AB9-4AA2-B2F5-4.  Krishnan R. and Goldstein J. 2010. Microsoft streaminsight: A hitchhiker's guide to Microsoft streaminsight queries. www.microsoft.com\/download\/8\/9\/C\/89C4DB34-6AB9-4AA2-B2F5-4."},{"volume-title":"Proceedings of the International Conference on Very Large Databases (VLDB). 492--503","author":"Law Y.-N.","key":"e_1_2_1_28_1"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066193"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/1058150.1058158"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/69.790816"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066271"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/564691.564698"},{"volume-title":"Proceedings of the International Conference on Very large Databases (VLDB). 122--133","author":"Meo R.","key":"e_1_2_1_34_1"},{"volume-title":"Proceedings of the 1st CIDR Conference.","author":"Motwani R.","key":"e_1_2_1_35_1"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/1920841.1920865"},{"volume-title":"Proceedings of the International Conference on Very large Database (VLDB).","author":"Mozafari B.","key":"e_1_2_1_37_1"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1807167.1807302"},{"volume":"1677","volume-title":"Proceedings of the International Conference on Database and Expert Systems (DEXA). Lecture Notes in Computer Science Series","author":"Perng C.-S.","key":"e_1_2_1_39_1"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.5555\/646497.695626"},{"key":"e_1_2_1_41_1","first-page":"6","article-title":"Loop-free SQL solutions for finding continuous regions","volume":"2","author":"Rozenshtein D.","year":"1993","journal-title":"SQL Forum"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/375551.375563"},{"volume-title":"Proceedings of the International Conference on Very large Databases (VLDB). 653--656","author":"Sadri R.","key":"e_1_2_1_43_1"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/1005566.1005568"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/276304.276335"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/273244.273251"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/191839.191926"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_27"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1055558.1055596"},{"volume-title":"Proceedings of the International Conference on Very large Database (VLDB).","year":"1996","author":"Sullivan M.","key":"e_1_2_1_50_1"},{"key":"e_1_2_1_51_1","unstructured":"Technologies I. I. 1994. Illustra user guide.  Technologies I. I. 1994. Illustra user guide."},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/130283.130333"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2011.5767879"},{"key":"e_1_2_1_54_1","first-page":"33","article-title":"Applying punctuation schemes to queries over continuous data streams","volume":"26","author":"Tucker P.","year":"2003","journal-title":"IEEE Data Eng. Bull."},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2003.1198390"},{"volume-title":"Proceedings of the 3rd SIAM International Conference on Data Mining. 130--141","author":"Wang H.","key":"e_1_2_1_56_1"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/1142473.1142520"},{"key":"e_1_2_1_58_1","unstructured":"Zaniolo C. Ceri S. Faloutsos C. Snodgrass R. Subrahmanian V. S. and Zicari R. 1997. Advanced Database Systems. Morgan Kaufmann.   Zaniolo C. Ceri S. Faloutsos C. Snodgrass R. Subrahmanian V. S. and Zicari R. 1997. Advanced Database Systems. Morgan Kaufmann."},{"key":"e_1_2_1_59_1","unstructured":"Zemke F. Witkowski A. Cherniak M. and Colby L. 2007. Pattern matching in sequences of rows. In http:\/\/asktom.oracle.com\/tkyte\/row-patternrecogniton-11-public.pdf http:\/\/www.sqlsnippets.com\/en\/topic-12162.html.  Zemke F. Witkowski A. Cherniak M. and Colby L. 2007. Pattern matching in sequences of rows. In http:\/\/asktom.oracle.com\/tkyte\/row-patternrecogniton-11-public.pdf http:\/\/www.sqlsnippets.com\/en\/topic-12162.html."}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1966385.1966386","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1966385.1966386","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T11:22:25Z","timestamp":1750245745000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1966385.1966386"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2011,5]]},"references-count":58,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2011,5]]}},"alternative-id":["10.1145\/1966385.1966386"],"URL":"https:\/\/doi.org\/10.1145\/1966385.1966386","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"type":"print","value":"0362-5915"},{"type":"electronic","value":"1557-4644"}],"subject":[],"published":{"date-parts":[[2011,5]]},"assertion":[{"value":"2010-04-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2010-11-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2011-06-02","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}