Practice · Economy · Medium

Peak GDP year

From the "GDP (current US$)" series, return the single year with the highest GDP, and that value.

Runs in your browser. No signup needed.

What you are given

Use indicators (name = 'GDP (current US$)'). ORDER BY value and LIMIT 1.

Starting point

SELECT year, value
FROM indicators
WHERE name = 'GDP (current US$)'
ORDER BY value DESC
LIMIT 1;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.

Did you know

Nominal-USD GDP peaked in 2022 then fell — but that drop is mostly the pound losing value against the dollar, not the real economy shrinking. (World Bank)

More Economy challenges

Open it in the playground →