Practice · Agriculture · Easy

Total wheat on record

Return the total wheat production across all recorded years as a column named total_mt, rounded to 2 decimals.

Runs in your browser. No signup needed.

What you are given

crops(crop, year, million_tonnes). SUM(...) with WHERE crop = ‘Wheat’, wrapped in ROUND(…, 2).

Starting point

SELECT ROUND(SUM(million_tonnes), 2) AS total_mt
FROM crops
WHERE crop = 'Wheat';

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

Did you know

Egypt grows ~9 million tonnes of wheat a year yet is still the world’s largest wheat importer — it can’t grow enough for 116 million people. (FAOSTAT)

More Agriculture challenges

Open it in the playground →