Modi � cation Semantics in Now Relative Databases

Most real-world databases record time-varying information. In such databases, the notion of "the current time," or NOW, occurs naturally and prominently. For example, when capturing the past states of a relation using begin and end time columns, tuples that are part of the current state have some past time as their begin time and NOW as their end time. While the semantics of such variable databases has been described in detail and is well understood, the modification of variable databases remains unexplored. This paper defines the semantics of modifications involving the variable NOW. More specifically, the problems with modifications in the presence of NOW are explored, illustrating that the main problems are with modifications of tuples that reach into the future. The paper defines the semantics of modifications--including insertions, deletions, and updates--of databases without NOW, with NOW, and with values of the type NOW + Δ, where Δ is a non-variable time duration. To accommodate these semantics, three new timestamp values are introduced. Finally, implementation is explored. We show how to represent the variable NOW with columns of standard SQL data types and give a mapping from SQL on NOW-relative data to standard SQL on these columns. The paper thereby completes the semantics, the querying, and the modification of now-relative databases.

[1]  James F. Allen Maintaining knowledge about temporal intervals , 1983, CACM.

[2]  Jacov Ben-Zvi,et al.  The time relational model , 1982 .

[3]  Curtis E. Dyreson,et al.  Supporting valid-time indeterminacy , 1998, TODS.

[4]  Sushil Jajodia,et al.  Temporal Databases: Theory, Design, and Implementation , 1993 .

[5]  Hans-Peter Kriegel,et al.  Managing Intervals Efficiently in Object-Relational Databases , 2000, VLDB.

[6]  Christian S. Jensen,et al.  Notions of Upward Compatibility of Temporal Query Languages , 1997, Wirtschaftsinf..

[7]  Richard T. Snodgrass,et al.  Coalescing in Temporal Databases , 1996, VLDB.

[8]  Arie Segev,et al.  A consensus glossary of temporal database concepts , 1994, SIGMOD 1994.

[9]  Richard T. Snodgrass,et al.  The temporal query language TQuel , 1987, TODS.

[10]  Alan R. Simon,et al.  Understanding the New SQL: A Complete Guide , 1993 .

[11]  Shashi K. Gadia,et al.  Temporal Databases: A Prelude to Parametric Data , 1993, Temporal Databases.

[12]  Christian S. Jensen,et al.  R-Tree Based Indexing of Now-Relative Bitemporal Data , 1998, VLDB.

[13]  Shashi K. Gadia,et al.  A homogeneous relational model and query languages for temporal databases , 1988, TODS.

[14]  Shamkant B. Navathe,et al.  Temporal Extensions to the Relational Model and SQL , 1993, Temporal Databases.

[15]  Marcelo Finger,et al.  Concurrency control for perceivedly instantaneous transactions in valid-time databases , 1997, Proceedings of TIME '97: 4th International Workshop on Temporal Representation and Reasoning.

[16]  Sushil Jajodia,et al.  Temporal Databases: Research and Practice , 1998 .

[17]  Christian S. Jensen,et al.  Light-weight indexing of general bitemporal data , 2000, Proceedings. 12th International Conference on Scientific and Statistica Database Management.

[18]  Jim Melton Understanding SQL Stored Procedures: A Complete Guide to SQL/PSM , 1998 .

[19]  Christian S. Jensen,et al.  Adding Valid Time to SQL/Temporal , 1996 .

[20]  James Clifford,et al.  On an algebra for historical relational databases: two views , 1985, SIGMOD Conference.

[21]  Ramez Elmasri,et al.  A consensus glossary of temporal database concepts , 1994, SGMD.

[22]  Christian S. Jensen,et al.  Layered Temporal DBMS: Concepts and Techniques , 1997, DASFAA.

[23]  Christian S. Jensen,et al.  Effective timestamping in databases , 2000, The VLDB Journal.

[24]  Sushil Jajodia,et al.  Integrating Temporal Data in a Heterogeneous Environment , 1993, Temporal Databases.

[25]  Nikos A. Lorentzos,et al.  SQL Extension for Interval Data , 1997, IEEE Trans. Knowl. Data Eng..

[26]  Albert Croker,et al.  The historical relational data model (HRDM) and algebra based on lifespans , 1986, 1987 IEEE Third International Conference on Data Engineering.

[27]  Christian S. Jensen,et al.  Indexing of now-relative spatio-bitemporal data , 2002, The VLDB Journal.

[28]  Ramez Elmasri,et al.  The Consensus Glossary of Temporal Database Concepts - February 1998 Version , 1997, Temporal Databases, Dagstuhl.

[29]  Richard T. Snodgrass,et al.  Partitioned storage for temporal databases , 1988, Inf. Syst..

[30]  Roger G. Johnson,et al.  Extending relational algebra to manipulate temporal data , 1988, Inf. Syst..

[31]  Marcelo Finger,et al.  On the Semantics of `Current-Time' In Temporal Databases , 1996 .

[32]  Christian S. Jensen,et al.  Temporal statement modifiers , 2000, TODS.

[33]  Christian S. Jensen,et al.  Seamless integration of time into sql , 1996 .

[34]  Christian S. Jensen,et al.  On the semantics of “now” in databases , 1996, TODS.

[35]  Richard T. Snodgrass,et al.  Developing Time-Oriented Database Applications in SQL , 1999 .

[36]  James Clifford,et al.  On the Semantics of (Bi)Temporal Variable Databases , 1994, EDBT.

[37]  Christian S. Jensen,et al.  Temporal Specialization and Generalization , 1994, IEEE Trans. Knowl. Data Eng..

[38]  Richard T. Snodgrass,et al.  The TSQL2 Temporal Query Language , 1995 .