- Local time
- Tomorrow, 01:44
- Joined
- Jan 20, 2009
- Messages
- 12,895
The problem is that only LoanIDs with recorded payments will appear to have an [Outstanding Balance]
Use an outer join in the subquery.
However I really wonder about the basis of your loan calculations. You are charging interest on the entire principal throughout the loan. Typically interest is charged only on the outstanding amount.