Hello All,
We have 3 tables.
Customers
LoanDetails
RepaymentDetails
How i can model this . Suppose i have to generate a report for customer wise loan amount and repayment amount how can i calculate it?
Now for example
Customer Steve got two loans from bank
Home loan - 1000USD
Car loan - 200 USD
in repayment table he has entries for his repayment every month. For example in 2016 he paid 12 times every month.
So now i joined like below
Customer - > Loan Details
Customer ->RepaymentDetails
But when we use sum(loanamount) and sum(repaymentamount) for steve in report it is totalling the 1000USD + 500 USD 12 times ..
Hope my explanation is clear. any help will be highly appreciated.
Thanks
Stv