Need help in generating report from DB getting Distinct value of Balance and getting the only oldest payment date per month (or not displaying the latest payment date per month)
Sample below is the should-be report. I only deleted the latest rows to make a sample of my objective.
here's the code:
SELECT payment_date,transaction_code,amount,interest_amount,
balance,source FROM m_loan_payment
WHERE loan_no = '13492' ORDER BY payment_date DESC