24
Chap4 Temporal Database Chap 4: Temporal Extensions to Chap 4: Temporal Extensions to the the Relational Relational Model and SQL Model and SQL

Temporal Database

  • Upload
    haig

  • View
    19

  • Download
    0

Embed Size (px)

DESCRIPTION

Temporal Database. Chap 4: Temporal Extensions to the Relational Model and SQL. 4.2 Temporal Relational Model (TRM). 4.2 Temporal Relational Model (TRM). 4.2.1 Synchronism and Temporal Dependence. - PowerPoint PPT Presentation

Citation preview

Page 1: Temporal Database

Chap4

Temporal Database

Chap 4: Temporal Extensions to the Chap 4: Temporal Extensions to the Relational Model and SQL Relational Model and SQL

Page 2: Temporal Database

Chap44.2 Temporal Relational Model (TRM)

Page 3: Temporal Database

Chap44.2 Temporal Relational Model (TRM)

Page 4: Temporal Database

Chap4

4.2.1 Synchronism and Temporal Dependence

Here, an Employee gets a raise in salary if and only if he or she gets a promotion, and an employee is never demoted. Thus, the TVA’s Salary and Position form a set of synchronous attributes .

Page 5: Temporal Database

Chap4

4.2.1 Synchronism and Temporal Dependence

Plane# is the identifier of an aircraft, Part is the name of a part,Cond describes the nature of the problem the part has, Place is the name of the place where it is being serviced, Cost is the cost associated with the Ts is the time when a particular maintenance event began , and TE is the time when it terminated.

Page 6: Temporal Database

Chap4

4.2.1 Synchronism and Temporal Dependence

Page 7: Temporal Database

Chap44.2.2 Time Normalization

Sal-Mgr (Table 4.3) can be decomposed into two relations,Manager (Table 4.4) and Salary (Table 4.5)

Page 8: Temporal Database

Chap44.2.2 Time Normalization

Page 9: Temporal Database

Chap44.3 TSQL: A Language Interface for TRM

Page 10: Temporal Database

Chap44.3 TSQL: A Language Interface for TRM

Page 11: Temporal Database

Chap44.3 TSQL: A Language Interface for TRM

Page 12: Temporal Database

Chap44.3.1 The WHEN Clause

Page 13: Temporal Database

Chap44.3.1 The WHEN Clause

Page 14: Temporal Database

Chap44.3.2 Retrieval of Timestamps

Page 15: Temporal Database

Chap44.3.3 Temporal Ordering

If there are n breaks for a given TIK value, then the tuples can be viewed as having been partitioned into n+1 groups. If breaks are taken into consideration for temporal ordering, the tuples in each of these groups created by the presence of breaks – are given a unique set of ordinal numbers.

Page 16: Temporal Database

Chap44.3.3 Temporal Ordering

Page 17: Temporal Database

Chap44.3.3 Temporal Ordering

Page 18: Temporal Database

Chap44.3.4 The TIME-SLICE Clause

Page 19: Temporal Database

Chap44.3.5 Aggregate Functions and GROUP BY

Page 20: Temporal Database

Chap44.3.5 Aggregate Functions and GROUP BY

Page 21: Temporal Database

Chap44.3.6 The Moving Window

Page 22: Temporal Database

Chap44.3.6 The Moving Window

Page 23: Temporal Database

Chap44.4 Temporal Relational Operators

Page 24: Temporal Database

Chap44.4.2 COMPRESS