Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 20, 2020 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/5ed6324a0ae952a44bf121ea1644554e to your computer and use it in GitHub Desktop.
Save codecademydev/5ed6324a0ae952a44bf121ea1644554e to your computer and use it in GitHub Desktop.
Codecademy export
SELECT ROUND(SUM(population), 3) AS 'Population', countries.continent
FROM population_years
JOIN countries
ON population_years.country_id =
countries.id
WHERE year = 2010
GROUP BY continent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment