Seminar Dbms
Seminar Dbms
Valid time is the time period during which a fact is true in the real world.
Transaction time is the time period during which a fact stored in the database
was known.
Decision time is the time period during which a fact stored in the database was
decided to be valid.
Uni-Temporal
A uni-temporal database has one axis of time, either the validity range or the
system time range.
Bi-Temporal
Tri-Temporal
A tri-temporal database has three axes of time.
valid time.
transaction time
decision time.
Non-Temporal Databases:
The two different notions of time - valid time and transaction time - allow the
distinction of different forms of temporal databases. A historical database stores
data with respect to valid time, a rollback database stores data with respect to
transaction time. A bitemporal database stores data with respect to both valid
time and transaction time.
As we mentioned above, commercial DBMS are said to store only a single state
of the real world, usually the most recent state. Such databases usually are
called snapshot databases. A snapshot database in the context of valid time and
transaction time is depicted in the following picture:
On the other hand, a bitemporal DBMS such as TimeDB stores the history of
data with respect to both valid time and transaction time. Note that the history of
when data was stored in the database (transaction time) is limited to past and
present database states, since it is managed by the system directly which does not
know anything about future states.
The states stored in a bitemporal database are sketched in the picture below. Of
course, a temporal DBMS such as TimeDB does not store each database state
separately as depicted in the picture below. It stores valid time and/or transaction
time for each tuple, as described above.
Features
Temporal databases support managing and accessing temporal data by providing
one or more of the following features:[1][2]
A time period datatype, including the ability to represent time periods with no
end (infinity or forever)
The ability to define valid and transaction time period attributes and bitemporal
relations
System-maintained transaction time
Temporal primary keys, including non-overlapping period constraints
Temporal constraints, including non-overlapping uniqueness and referential
integrity
Update and deletion of temporal records with automatic splitting and coalescing
of time periods
Temporal queries at current time, time points in the past or future, or over
durations
Predicates for querying time periods, often based on Allen’s interval relations