We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e453d commit 8d55bd4Copy full SHA for 8d55bd4
1 file changed
SOLUTIONS.md
@@ -56,7 +56,7 @@ SELECT
56
MIN(area) AS smallest,
57
(SELECT name FROM countries WHERE area = MIN(c1.area) AND continent=c1.continent) AS smallest_name,
58
SUM(population) AS total_population,
59
- ROUND(AVG(gdp/population)) AS avg_gdp
+ ROUND(SUM(gdp)/SUM(population)) AS avg_gdp
60
FROM countries c1
61
GROUP BY continent
62
ORDER BY continent
0 commit comments