Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 29, 2020 20:35
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/86bc6cb293588239a1ffc1eee1e511ff to your computer and use it in GitHub Desktop.
Save codecademydev/86bc6cb293588239a1ffc1eee1e511ff to your computer and use it in GitHub Desktop.
Codecademy export
-- This is the first query:
SELECT DISTINCT year from population_years;
-- Add your additional queries below:
-- 2000 through 2010 are covered in the dataset
select max(population) from
population_years;
select distinct country from
population_years
order by population asc
limit 10;
select distinct country from
population_years
where population > 100;
select distinct country from population_years
where country like '%Islands%';
-- 9 Countries like this
select population from
population_years
where country = 'Indonesia'
and year = 2000;
select population from
population_years
where country = 'Indonesia'
and year = 2010;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment