Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 23, 2020 12:02
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/ecef2b122449c57d4d92d0d7453350fd to your computer and use it in GitHub Desktop.
Save codecademydev/ecef2b122449c57d4d92d0d7453350fd 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;
select * from population_years where year = '2005'
order by population asc
limit 10;
select distinct country from population_years
where year = '2010' and population > '100';
select distinct country from population_years where country like '%islands%';
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