Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 5, 2020 20:50
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/616590c6fec0a39910bd8658763cf544 to your computer and use it in GitHub Desktop.
Save codecademydev/616590c6fec0a39910bd8658763cf544 to your computer and use it in GitHub Desktop.
Codecademy export
--Q3
SELECT DISTINCT year from population_years;
--Q4
select *
from population_years
where country = 'Gabon'
order by population Desc;
--Q5
select *
from population_years
where year = 2005
order by population
limit 10;
--Q6
select *
from population_years
where population >= 100 and year = 2010;
--Q7
select distinct country
from population_years
where country like '%Islands%';
--Q8
select *
from population_years
where year = 2000 and country = 'Indonesia';
select *
from population_years
where year = 2010 and country = 'Indonesia';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment