Menu
mediumHong Leong Bank · subquery

Find accounts with zero transactions

Flag accounts as dormant if they have never appeared in the transactions table at all.

Return account_id and owner for every dormant account.

Schema

accounts
account_idINT
ownerTEXT
transactions
idINT
account_idINT
amountNUMERIC

Example input

accounts
transactions
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.