Jump to content
Wikipedia The Free Encyclopedia

Decision time

From Wikipedia, the free encyclopedia
Time when a decision was made in a temporal database

In temporal databases, decision time is the time when a decision was made about a fact stored in a database.[citation needed ] It is used to keep a history of decisions about valid times.

In a database table, the start and end time of the decision time interval can be represented by adding two table columns. This interval is closed [ in the lower bound, and open at the upper bound ). When a decision has not been replaced, the end time of the decision is unknown, and it can thus be considered valid "until changed" or infinite (∞).

Valid time and decision time are ways of modeling data, and is not applicable for all types of data,[1] and transaction time is hence the most used temporal functionality.[1] The concept of decision time can for example be used in bitemporal databases (together with valid time instead of transaction time), or in tritemporal databases.[2]

History

[edit ]

The term decision time was coined by Mario Nascimento and Margaret Eich (1995).[3]

Although the ISO SQL standard has included support for "application-time period tables" (valid time tables) and "system-versioned tables" (transaction tables) since SQL:2011, it does however not include specific clauses for decision time.

Comparison with valid time and transaction time

[edit ]

In a tritemporal database,[4] valid times are a history of valid time periods for facts stored in the database. The decision times are a history of decisions about validity times, and transaction times are again a history of decision times. Thus, transaction times are a history of meta-histories ("histories of histories").

Decision time is unconstrained in relationship to valid time, but it must be earlier than the transaction time. For example, the decision time can not be assigned a date in the future.

Example

[edit ]

The following is a list of real events that occurred between the 1964 and 1976 United States presidential elections:

Date Decision maker Real world event
1964年11月03日 Electoral College Election of 1964
1968年11月05日 Electoral College Election of 1968
1972年11月07日 Electoral College Election of 1972
1973年10月10日 Spiro Agnew Agnew resigns
1973年10月12日 Richard Nixon Nixon nominates Ford
1973年12月06日 Congress Congress confirms Ford
1974年08月09日 Richard Nixon Nixon resigns
1974年08月20日 Gerald Ford Ford nominates Rockefeller
1974年12月19日 Congress Congress confirms Rockefeller
1976年11月02日 Electoral College Election of 1976

In this example, a constant 7-day delay is assumed between the decision time and the transaction time when the data is committed to the database. Given those conditions, the database would have contained the following information after the election in 1976:

Valid Decision Transaction
President Vice From To From To From To
Johnson Humphrey 1965年01月20日 1969年01月20日 1964年11月03日 1964年11月10日
Nixon Agnew 1969年01月20日 1973年01月20日 1968年11月05日 1968年11月12日
Nixon Agnew 1973年01月20日 1977年01月20日 1972年11月07日 1972年11月14日 1973年10月17日
Nixon Agnew 1973年01月20日 1977年01月20日 1972年11月07日 1973年10月10日 1973年10月17日
Nixon Agnew 1973年01月20日 1973年10月10日 1973年10月10日 1973年10月17日
Nixon (Vacant) 1973年10月10日 1977年01月20日 1973年10月10日 1973年10月17日 1973年12月13日
Nixon Ford 1977年01月20日 1973年10月12日 1973年10月19日 1973年12月13日
Nixon (Vacant) 1973年10月10日 1977年01月20日 1973年10月10日 1973年12月06日 1973年12月13日
Nixon (Vacant) 1973年10月10日 1973年12月06日 1973年12月06日 1973年12月13日
Nixon Ford 1977年01月20日 1973年10月12日 1973年12月06日 1973年12月13日
Nixon Ford 1973年12月06日 1977年01月20日 1973年12月06日 1973年12月13日 1974年08月15日
Nixon Ford 1973年12月06日 1977年01月20日 1973年12月06日 1974年08月08日 1974年08月15日
Nixon Ford 1973年12月06日 1974年08月09日 1974年10月08日 1974年08月15日
Ford (Vacant) 1974年08月09日 1977年01月20日 1974年10月08日 1974年08月15日 1974年12月26日
Ford Rockefeller 1977年01月20日 1974年10月20日 1974年08月27日 1974年12月26日
Ford (Vacant) 1974年08月09日 1977年01月20日 1974年10月08日 1974年12月19日 1974年12月26日
Ford (Vacant) 1974年08月09日 1974年12月19日 1974年12月19日 1974年12月26日
Ford Rockefeller 1977年01月20日 1974年08月20日 1974年12月19日 1974年12月26日
Ford Rockefeller 1974年12月19日 1977年01月20日 1974年12月19日 1974年12月26日
Carter Mondale 1977年01月20日 1981年01月20日 1976年11月02日 1976年11月09日

Given the 7-day delayed table above, the question "who was president and vice president for the valid time of 1977年01月01日" (which given the 7-day delay could provide data for 1976年12月25日) would be:

  • Nixon/Agnew when using a decision time and transaction time of 1972年11月14日
  • Nixon/(Vacant) when using a decision time and transaction time of 1973年10月17日
  • Nixon/Ford when using a decision time and transaction time of 1974年08月08日
  • Ford/(Vacant) when using a decision time of 1974年08月08日 and transaction time of current
  • Ford/Rockefeller when using a decision time and transaction time of current

See also

[edit ]

References

[edit ]

AltStyle によって変換されたページ (->オリジナル) /