Valid time
In temporal databases, valid-time is the time period when an event happened or something was true in the real world, or more formally when a fact was valid in the modeled reality. The valid-time period is an interval based on event times, which are referred to as event datetime in data vault.[1][2] Other names are application-time period[1] or real-world timeline.[1] SQL:2011 supports valid time through so-called application time-period tables.[3][4][5][6] In a database table, valid-time is often represented by two extra table-columns, such as In integration layers (for example a data warehouse), the valid time is controlled by the source system which delivers data to the data warehouse.[7] For many reasons, the valid timeline is different from the transaction timeline (which is when data arrives in the warehouse), and it is important that the data warehouse is capable of unambiguously reporting what actually happened in the past by combining these two timelines.[7] In bitemporal data models, valid time and transaction time can be represented two-dimensionally in a Cartesian coordinate system. When data are delivered from the integration layer and is to be represented in a presentation layer (often in a dimensional model or wide table) it is often desirable to have the data on only one timeline. HistoryThe term valid time was coined by Richard T. Snodgrass and his doctoral student Ilsoo Ahn (1986).[8] As of December 2011, ISO/IEC 9075, Database Language SQL:2011 Part 2: SQL/Foundation included clauses in table definitions to define "application-time period tables" (that is, valid-time tables). Example[Needs an additional row: "John's death registered".]
Valid time is the time for which a fact is true in the real world. In the example above, the Person table gets two extra fields,
On 1994-12-27 John reports his new address in Bigtown where he has been living since 1994-08-26. The Bigtown official does not change the address of the current entry of John Doe in the database. He adds a new one:
The original entry Person (John Doe, Smallville, 1975-04-03, ∞) is then updated (not removed!). Since it is now known that John stopped living in Smallville on 1994-08-26, the
When John dies the database is once more updated. The current entry will be updated stating the date of death as the last
See also
References
|