Skip to content

Commit 8d55bd4

Browse files
committed
fix solution for avg gdp
1 parent 57e453d commit 8d55bd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SOLUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ SELECT
5656
MIN(area) AS smallest,
5757
(SELECT name FROM countries WHERE area = MIN(c1.area) AND continent=c1.continent) AS smallest_name,
5858
SUM(population) AS total_population,
59-
ROUND(AVG(gdp/population)) AS avg_gdp
59+
ROUND(SUM(gdp)/SUM(population)) AS avg_gdp
6060
FROM countries c1
6161
GROUP BY continent
6262
ORDER BY continent

0 commit comments

Comments
 (0)