| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: problem with historical data and referential integrity
You then use "CURRENT_TIMESTAMP BETWEEN start_date AND COALESCE (end_date, CURRENT_TIMESTAMP)" predicates in VIEWs for the current versions and the same kind of predicates for particular dates.
The bonus with this is that you can also set future changes. Are you a recratianl matha and logic fan? Ever see the "Grue and Bleen" problem in Scientific American puzzles column?
INSERT INTO Foobar (start_time, end-time, collor) VALUES ('2004-01-01', '2004-12-31', 'Blue'), ('2005-01-01', '2005-12-31', 'Green'); Received on Tue Dec 07 2004 - 21:09:14 CST
![]() |
![]() |