Select, Filter and Sort · Problem 3 of 118

Frozen Accounts

EasySelect, Filter and SortBank data

The compliance team wants to review every frozen account.

Return the account_id and balance_cents of each account whose status is 'frozen'.

Hint 1

The status is stored as lower-case text, for example 'frozen'.

Reference solution

SELECT account_id, balance_cents
FROM accounts
WHERE status = 'frozen';

This is a plain filter: pick two columns, keep the rows where status = 'frozen'. Balances are stored in cents (an integer), so 250075 means 2,500.75. Keeping money as whole cents avoids rounding errors.