Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 4, 2020 16:53
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/8edd846ec32387b69e1388700f7f8aea to your computer and use it in GitHub Desktop.
Save codecademydev/8edd846ec32387b69e1388700f7f8aea 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:
select * from population_years where country='Gabon' order by population desc limit 1;
select * from population_years where year=2005 order by population limit 10;
select distinct country from population_years where population >100 and year=2010;
select distinct country from population_years where country like '%Islands%';
select * from population_years where year between 2000 and 2010 and country='Indonesia';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment