Does anyone have any experience having worked with datasets where records become valid and invalid based on an effective start and end date? The issue is when records in these tables have foreign keys to other tables that also have effective start and end dates
Seems you have to end up creating new records for just about every table to allow the foreign key updates while maintaing the history.
Example:
--- Pet ---
Dog named jasper, owner is Jack from jan -> jun and sells to Ken from Jun - > end of time
--- Owner ---
Jack lives at House A from jan -> feb, then House B from feb -> end of time
Ken lives at House C from feb -> september, House D from sept -> end of time
so if a report for jasper in june, owner will be jack living at House B. Same query run for september will be Ken in House D.
How is the best way to model this relationship? And how to perform 'updates' to the data to maintain the appropriate relationships?