On the semantics of ''now'' in databases

被引:91
作者
Clifford, J
Dyreson, C
Isakowitz, T
Jensen, CS
Snodgrass, RT
机构
[1] JAMES COOK UNIV N QUEENSLAND,DEPT COMP SCI,TOWNSVILLE,QLD 4811,AUSTRALIA
[2] UNIV AALBORG,DEPT MATH & COMP SCI,DK-9220 AALBORG,DENMARK
[3] UNIV ARIZONA,DEPT COMP SCI,TUCSON,AZ 85721
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 1997年 / 22卷 / 02期
关键词
languages; performance; indeterminacy; now; now-relative value; SQL; temporal query language; TSQL2;
D O I
10.1145/249978.249980
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Although ''now'' is expressed in SQL as CURRENT_TIMESTAMP within queries, this value cannot be stored in the database. However, this notion of an ever-increasing current-time value has been reflected in some temporal data models by inclusion of database-resident variables, such as ''now'', ''until-changed,'' ''infinity,'' @,'' and ''-''. Time variables are. very desirable, but their use also leads to a new type of database, consisting of tuples with variables, termed a variable database. This article proposes a framework for defining the semantics of the variable databases of the relational and temporal relational data models. A framework is presented because several reasonable meanings may be given to databases that use some of the specific temporal variables that have appeared in the literature. Using the framework, the article defines a useful semantics for such databases. Because situations occur where the existing time. variables are inadequate, two new types of modeling entities that address these shortcomings, timestamps that we call now-relative and now-relative indeterminate, are introduced and defined within the framework. Moreover, the article provides a foundation, using algebraic bind operators, for the querying of variable databases via existing query languages. This transition to variable databases presented here requires minimal change to the query processor. Finally, to underline the practical feasibility of variable databases, we show that database variables can be precisely specified and efficiently implemented in conventional query languages, such as SQL, and in temporal query languages, such as TSQL2.
引用
收藏
页码:171 / 214
页数:44
相关论文
共 53 条
  • [1] BIBLIOGRAPHY ON SPATIOTEMPORAL DATABASES
    ALTAHA, KK
    SNODGRASS, RT
    SOO, MD
    [J]. INTERNATIONAL JOURNAL OF GEOGRAPHICAL INFORMATION SYSTEMS, 1994, 8 (01): : 95 - 103
  • [2] [Anonymous], NUMERICAL METHODS SO, DOI DOI 10.1007/978-1-4612-1984-2_19
  • [3] ARIAV G, 1984, 821205 U PENNS DEC S
  • [4] A RELATIONAL-CALCULUS QUERY LANGUAGE FOR HISTORICAL DATABASES
    BASSIOUNI, MA
    LLEWELLYN, MJ
    [J]. COMPUTER LANGUAGES, 1992, 17 (03): : 185 - 197
  • [5] BENZVI J, 1982, THESIS U CALIFORNIA
  • [6] Bhargava G., 1989, Proceedings of the Fifteenth International Conference on Very Large Data Bases, P217
  • [7] ON COMPLETENESS OF HISTORICAL RELATIONAL QUERY LANGUAGES
    CLIFFORD, J
    CROKER, A
    TUZHILIN, A
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 1994, 19 (01): : 64 - 116
  • [8] FORMAL SEMANTICS FOR TIME IN DATABASES
    CLIFFORD, J
    WARREN, DS
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 1983, 8 (02): : 214 - 254
  • [9] CLIFFORD J, 1993, P ARPA NSF INT WORKS
  • [10] CLIFFORD J, 1985, P ACM SIGMOD INT C M, P247