Skip to main content

An Efficient SQL Rewrite Approach for Temporal Coalescing in the Teradata RDBMS

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 7447))

Abstract

The importance of temporal data management is manifested by a considerable attention from the database research community. This importance is becoming even more evident by the recent increasing support of temporal features in major commercial database systems. Among these systems, Teradata offers a native support to a wide range of temporal analytics. In this paper, we address the problem of temporal coalescing in the Teradata RDBMS. Temporal coalescing is a key temporal query processing operation, which merges adjacent or overlapping timestamps of value-equivalent rows. From existing approaches to implement temporal coalescing, pursuing an SQL-based approach is perhaps the most feasible and the easiest applicable. Along this direction, we propose an efficient SQL rewrite approach to implement temporal coalescing in the Teradata RDBMS by leveraging runtime conditional partitioning – a Teradata enhancement to ANSI ordered analytic functions – that enables to express the coalescing semantic in an optimized join-free single-scan SQL query. We evaluated our proposed approach over a system running Teradata 14.0 with a performance study that demonstrates its efficiency.

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

Buying options

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Böhlen, M.H.: Temporal coalescing. In: Encyclopedia of Database Systems, pp. 2932–2936 (2009)

    Google Scholar 

  2. Böhlen, M.H., Snodgrass, R.T., Soo, M.D.: Coalescing in temporal databases. In: VLDB, pp. 180–191 (1996)

    Google Scholar 

  3. Dyreson, C., et al.: A consensus glossary of temporal database concepts. SIGMOD Rec. 23(1), 52–64 (1994)

    Article  Google Scholar 

  4. Chandra, R., Segev, A.: Managing temporal financial data in an extensible database. In: VLDB 1993, pp. 302–313 (1993)

    Google Scholar 

  5. Date, C., Darwen, H.: Temporal Data and the Relational Model. Morgan Kaufmann Publishers Inc., San Francisco (2002)

    Google Scholar 

  6. IBM. A matter of time: Temporal data management in DB2 for z/OS (2010), http://www.ibm.com/developerworks/data/library/techarticle/dm-1204db2temporaldata/dm-1204db2temporaldata-pdf.pdf

  7. Jensen, C.S., Snodgrass, R.T.: Temporal data management. IEEE TKDE 11(1), 36–44 (1999)

    Google Scholar 

  8. Oracle. Oracle flashback technologies (2010), http://www.oracle.com/technetwork/database/features/availability/flashback-overview-082751.html

  9. Snodgrass, R.T., et al.: TSQL2 language specification. SIGMOD Rec. 23(1), 65–86 (1994)

    Article  Google Scholar 

  10. Shoshani, A., Kawagoe, K.: Temporal data management. In: VLDB 1986, pp. 79–88 (1986)

    Google Scholar 

  11. Snodgrass, R.T.: Developing Time-Oriented Database Applications in SQL. Morgan Kaufmann (1999)

    Google Scholar 

  12. Tansel, A.U.: Temporal databases theory, design, and implementation. The Benjamin/Cummings Publishing Company, Inc. (1993)

    Google Scholar 

  13. Tansel, A.U.: Temporal relational data model. IEEE TKDE 09(3), 464–479 (1997)

    Google Scholar 

  14. Teradata. Teradata temporal analytics (2010), http://www.teradata.com/database/teradata-temporal/

  15. Zhou, X., Wang, F., Zaniolo, C.: Efficient Temporal Coalescing Query Support in Relational Database Systems. In: Bressan, S., Küng, J., Wagner, R. (eds.) DEXA 2006. LNCS, vol. 4080, pp. 676–686. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Al-Kateb, M., Ghazal, A., Crolotte, A. (2012). An Efficient SQL Rewrite Approach for Temporal Coalescing in the Teradata RDBMS. In: Liddle, S.W., Schewe, KD., Tjoa, A.M., Zhou, X. (eds) Database and Expert Systems Applications. DEXA 2012. Lecture Notes in Computer Science, vol 7447. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-32597-7_32

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-32597-7_32

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-32596-0

  • Online ISBN: 978-3-642-32597-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics