I have a fact table called Loans. In this table, in the loan identifier, date of loan disbursement and loan amount.
The business requirement that I do not quite know how to do in the data warehouse is as follows. The loan amount may be adjusted in the future. So, let's say, on August 1, we make a loan with identifier 1 and the amount of 20,000. On October 1, this loan is adjusted to 19,000. Do I put two records in the fact table with the same identifier and different dates and amounts?
Should I create a new table (size table) with the loan amount and date? What is the best way to make this scenario?
In the production database, we have a table for the total loan amount, and then a table with that for loanAmounts, so the combination of loan assets is equal to totalLoanAmount.
source
share