Hi all,
Thanks for looking,
I have multiple tables with timelines on, my hope is to be able to merge these into one to create a timeline across multiple topics, essentially to make later querying easier. I've changed the topics for easier understanding but kept the principle.
We get examples with three, four or more tables with start and end dates (or nulls) - and perhaps 80,000 records! Though I've presented a target table below ideas outside that for handling this sort of thing are also very welcome.
Dave C
** BASE PRICE TABLE **
+PRODUCT+BASEPRICE+PRICESTART+PRICEEND
--------------------------------------
|SHOES1 |23.55 |10/05/20 |31/12/21
|SHOES1 |26.99 |01/01/22 |(NULL)
** DISCOUNT TABLE **
+PRODUCT+DISCOUNT+DISCSTART+DISCEND
-----------------------------------
|SHOES1 |0.10 |10/05/20 |15/02/22
|SHOES1 |0.20 |16/02/22 |(NULL)
** SOMEHOW TO GET TO **
+PRODUCT+BASEPRICE+DISCOUNT+START +END
------------------------------------------
|SHOES1 |23.55 |0.10 |10/05/20|31/12/21
|SHOES1 |26.99 |0.10 |01/01/22|15/02/22
|SHOES1 |26.99 |0.20 |16/02/22|(NULL)
Thanks again,
DC