RienSQL
TASK #218 · Medium · BBVA

Customers With No Activity in June

Your brief
A customer is active in June 2025 if, during that month, any of their accounts made a card payment (card_payments) or an outgoing transfer (transfers.from_account_id). Received transfers do not count.

Write a query that returns customer_id and full_name of every customer who was not active in June 2025, including customers without accounts.
Expected columnscustomer_id full_nameBBVA
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
customerscustomer_id, full_name, city, joined_date
accountsaccount_id, customer_id, product, opened_date, start_balance
card_paymentspayment_id, account_id, paid_at, merchant, category, amount
transferstransfer_id, from_account_id, to_account_id, transfer_at, amount, concept