Skip to main content
All Problems
medium0% acceptance

Dormant Accounts (No Recent Transactions)

Identify active accounts that have had no transactions in the last 90 days (relative to the most recent transaction_date in the database). Return account id, account_type, balance, and the last_txn_date for the account. Use a subquery to determine the cutoff date. Order by last_txn_date ascending.

Schema

🔑idINT
🔗customer_idINT
account_typeTEXT
balanceREAL
currencyTEXT
opened_atTEXT
statusTEXT
postgresql

Run your query to see results

Press Ctrl + Enter to execute