This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This is the first query: | |
SELECT DISTINCT year from population_years; | |
-- Add your additional queries below: | |
-- This is the first query: | |
SELECT DISTINCT year from population_years; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*) FROM countries | |
where continent like '%africa%'; | |
select continent,round(sum(population),2) as 'Total Population' from population_years | |
join | |
countries | |
on countries.id = population_years.country_id | |
where continent like '%Oceania%' AND year = 2005 | |
group by continent; |