-
-
Save codecademydev/616590c6fec0a39910bd8658763cf544 to your computer and use it in GitHub Desktop.
Codecademy export
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
--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