Looking for inputs on a data warehouse schema design. Here is the scenario:
I have an Action Table and User Table that is currently joined based on UserId to get the details about the user who did an action.
Action Table:
UserId Action
123 Test001
User Table:
UserId UserName
123 Adam
Now, we have to migrate the users to a new user management system (UMS) and here is how it works:
- Existing users will be migrated to UMS and new UserId (let's call this as a Modern UserId and existing UserId as Legacy UserId) will be assigned. So, the new records coming-in for new actions will carry the new UserId.
- New users created in UMS will only have Modern UserId and Legacy UserId will be run.
- Migrated users will have both Legacy UserId and Modern UserId.
Now, when we do reporting, we have to expose both historic and new action data. Wondering what should be the ideal schema design so we can report both historic & new actions and map them to the right user.
Platform: SQL Server 2016, Analysis Services
Please let me know if you need more details.