In a datamart where 2 or 3 or more dimensions merge to form a new dimension. How can the scd be managed to keep track of all mergers historically and present trending facts as related to those dimensions?
A specific example would be three stores (Business ID 8897, 8965, 9135) merge to create a new store Business ID 9700. How can historical sales data be fetched from the fact table to show that up until a given date 8897, 8965 and 9135 were separate stores which are all now a new store 9700.
Additionally what if the business number of the new store is not 9700 but the new store takes on one of the previous stores business ID. So instead of 9700 the new merged store business ID is 8897.
SurrogateKey -------- StoreBusinessID---------- StoreName
=============== =================== ==================
1 8897 Alpha Electronic
2 8965 Beta Electronics
3 9135 Gamma Electronic
4 9700 Mega Electornics
=============== =================== ==================