Practice · Economy · Easy

The worst inflation year

Return the single highest annual inflation rate on record, as a column named max_rate.

Runs in your browser. No signup needed.

What you are given

inflation(year, rate_pct). Use MAX(rate_pct).

Starting point

SELECT MAX(rate_pct) AS max_rate
FROM inflation;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row.

Did you know

MIN and MAX are aggregates too — they collapse a whole column to one value. (SQLite docs)

More Economy challenges

Open it in the playground →