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_id | INT |
| owner | TEXT |
▸transactions
| id | INT |
| account_id | INT |
| amount | NUMERIC |
Example input
▸accounts
▸transactions
Stuck? Ask the coach for a nudge that won't give the answer away, or reveal the reference solution and a short walkthrough of why it works.