Skip to main content

User-Defined Aggregates in Database Languages

  • Conference paper
  • First Online:
Research Issues in Structured and Semistructured Database Programming (DBPL 1999)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1949))

Included in the following conference series:

  • 283 Accesses

Abstract

User-defined aggregates (UDAs) can be the linchpin of sophisticated data mining functions and other advanced database applications, but they find little support in current database systems.In this paper, we describe the SQL-AG prototype that overcomes these limitations by supporting UDAs as originally proposed in Postgres and SQL3. Then we extend the power and flexibility of UDAs by adding (i) early returns, (to express online aggregation) and (ii) syntactically recognizable monotonic UDAs that can be used in recursive queries to support applications, such as Bill of Materials (BoM) and greedy algorithms for graph optimization, that cannot be expressed under stratified aggregation. This paper proposes a unified solution to both the theoretical and practical problems of UDAs, and demonstrates the power of UDAs in dealing with advanced database applications.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Abiteboul S., Hull R. and Vianu V., Foundations of Databases, Addison Wesley, 1995. 54

    Google Scholar 

  2. S. Brin, R. Motwani, J. D. Ullman, S.L. Tsur, “Dynamic Itemset Counting and Implication Rules for Market Basket Data”.In SIGMOD’97. 48

    Google Scholar 

  3. D. Chamberlin, “Using the new DB2, IBM’s Object-Relational Database System,” Morgan Kaufmann, 1996. 45, 49

    Google Scholar 

  4. Cindy Xinmin Chen, Carlo Zaniolo: Universal Temporal Extensions for Database Languages.ICDE 1999: 428–437. 45, 46

    Google Scholar 

  5. Charles Elkan. “Boosting and Naive Bayesian Learning”. Technical report no cs97-557, Dept.of Computer Science and Engineering, UCSD, September 1997. 44

    Google Scholar 

  6. J.M. Hellerstein, P. J. Haas, H.J. Wang. “Online Aggregation”. SIGMOD, 1997. 46

    Google Scholar 

  7. M. Fang, N. Shivakumar, H. Garcia-Molina, R. Motwani, J.D. Ullman, “Computing Iceberg Queries Efficiently”.In VLDB 1998. 48

    Google Scholar 

  8. ISO/IEC JTC1/SC21 N10489, ISO//IEC 9075, “Committee Draft (CD), Database Language SQL”, July 1996. 43, 45, 46

    Google Scholar 

  9. Finkelstein, S.J., N. Mattos, I.S. Mumick, and H. Pirahesh, Expressing Recursive Queries in SQL, ISO WG3 report X3H2-96-075, March 1966. 47

    Google Scholar 

  10. S. Ganguly, S. Greco, and C. Zaniolo, “Extrema Predicates in Deductive Databases,” JCSS 51(2): 244–259 (1995). 47, 50, 58

    MATH  MathSciNet  Google Scholar 

  11. M. Gelfond and V. Lifschitz. The Stable Model Semantics for Logic Programming. Procs. Joint International Conference and Symposium on Logic Programming, pp. 1070–1080, 1988. 48, 54, 56

    Google Scholar 

  12. F. Giannotti, D. Pedreschi, and C. Zaniolo, “Semantics and Expressive Power of Non-Deterministic Constructs in Deductive Databases,” JCSS, to appear. 54, 56

    Google Scholar 

  13. Gyssen, M., Van Gucht, D. and Badia, A., Query Languages with Generalized Quantifiers, in Applications of Logic Databases, R. Ramakrishan, Kluwer, 1995. 53

    Google Scholar 

  14. Hsu, P.Y.and Parker, D.S., “Improving SQL with Generalized Quantifiers,” Proc. ICDE 1995. 53

    Google Scholar 

  15. A. Van Gelder. “Foundations of Aggregations in Deductive Databases.” Proc. of the Int. Conf. On Deductive and Object-Oriented databases, 1993. 47, 50, 58

    Google Scholar 

  16. David B. Kemp and Peter J. Stuckey, “Semantics of logic programs with aggregates” Proc. 1991 International Symposium on Logic Programming, pages 387–401, October 1991. 56

    Google Scholar 

  17. D. Srivastava, R. Ramakrishnan, P. Seshadri, S. Sudarshan. Coral++: Adding Object-Orientation to a Logic Database Language.In VLDB 1993: 158–170. 47, 53, 58

    Google Scholar 

  18. R. Rastogi, K. Shim. “PUBLIC: A Decision Tree Classiffier that Integrates Building and Pruning”.VLDB 1998: 404–415. 48

    Google Scholar 

  19. K.A. Ross and Yehoshua Sagiv, “Monotonic Aggregation in Deductive Database”, JCSS 54(1), 79–97 (1997). 47, 50, 57, 58

    MATH  MathSciNet  Google Scholar 

  20. S.A. Naqvi, S. Tsur “A Logical Language for Data and Knowledge Bases”, W. H. Freeman, 1989. 51

    Google Scholar 

  21. D. Saccá and C. Zaniolo. Stable models and non-determinism in logic programs with negation, Proceedings of the Ninth ACM Symposium on Principles of Database Systems, pages 205–217, 1990. 54, 56

    Google Scholar 

  22. D. Saccá and C. Zaniolo, Deterministic and non-deterministic Stable Models, Journal of Logic and Computation, 7(5):555–579, October 1997. 54, 56

    Article  MATH  MathSciNet  Google Scholar 

  23. S. Sarawagi, S. Thomas, R. Agrawal, “Integrating Association Rule Mining with Relational Database Systems: Alternatives and Implications”.In SIGMOD, 1998. 45

    Google Scholar 

  24. J.C. Shafer, R. Agrawal, M. Mehta, “SPRINT: A Scalable Parallel Classiffier for Data Mining”.In VLDB 1996. 45

    Google Scholar 

  25. Haixun Wang, The SQL-AG System, http://magna.cs.ucla.edu/~hxwang/sqlag/sqlag.html 49, 58

  26. H. Wang and C. Zaniolo “User-Defined Aggregates in Datamining,” ACM SIGMOD Workshop on Research Issues in Data Mining and Knowledge Discovery, DMKD’99, May 30, 1999. 46

    Google Scholar 

  27. H. Wang, and C. Zaniolo “User Defined Aggregates in Object-Relational Systems” ICDE 2000 Conference, San Diego, CA, February 29-March 3, 2000. 59

    Google Scholar 

  28. C. Zaniolo et al. LDL++ Documentation and Web Demo, http://www.cs.ucla.edu/ldl 51, 53, 57, 58

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wang, H., Zaniolo, C. (2000). User-Defined Aggregates in Database Languages. In: Connor, R., Mendelzon, A. (eds) Research Issues in Structured and Semistructured Database Programming. DBPL 1999. Lecture Notes in Computer Science, vol 1949. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44543-9_4

Download citation

  • DOI: https://doi.org/10.1007/3-540-44543-9_4

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41481-0

  • Online ISBN: 978-3-540-44543-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics