The collections team needs a report of loan payments with customer details. Return first_name, last_name, loan_type, payment_date, amount, and remaining_balance. Sort by payment_date descending.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql
Run your query to see results
Press Ctrl + Enter to execute