Creating and Using A Table With Valid Time Support: Live SQL
Creating and Using A Table With Valid Time Support: Live SQL
Description12c ; Example creates a table with Temporal Validity Support, inserts some
rows, and issues some queries whose results depend on the valid start and end dates for
individual rows.
CategorySQL General
Statement
empno NUMBER,
last_name VARCHAR2(30),
start_time TIMESTAMP,
end_time TIMESTAMP,
Statement
Statement
Statement
1 row(s) inserted.
Statement
Statement
LAST_NAME
Ames
START_TIME
01-JAN-10 12.00.00.000000 AM
END_TIME
30-JUN-11 12.00.00.000000 AM
LAST_NAME
START_TIME
END_TIME
100
Ames
01-JAN-10 12.00.00.000000 AM
30-JUN-11 12.00.00.000000 AM
101
Burton
01-JAN-11 12.00.00.000000 AM
30-JUN-11 12.00.00.000000 AM
2 rows selected.
Statement
Statement
LAST_NAME
102
Chen
START_TIME
END_TIME
01-JAN-12 12.00.00.000000 AM
Statement
Statement
LAST_NAME
Ames
10
START_TIME
01-JAN-10 12.00.00.000000 AM
END_TIME
30-JUN-11 12.00.00.000000 AM
LAST_NAME
START_TIME
END_TIME
100
Ames
01-JAN-10 12.00.00.000000 AM
30-JUN-11 12.00.00.000000 AM
101
Burton
01-JAN-11 12.00.00.000000 AM
30-JUN-11 12.00.00.000000 AM
2 rows selected.
11
Statement
LAST_NAME
102
Chen
START_TIME
01-JAN-12 12.00.00.000000 AM
END_TIME
-
12
Statement
no data found
Additional Information