-
-
Save codecademydev/1c3cc725b32e8e1a485524b25abdd308 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
-- This is the first query: | |
SELECT DISTINCT year from population_years; | |
select distinct country from population_years | |
order by country asc; | |
-- Add your additional queries below: | |
select country, population | |
from population_years | |
where country = 'Gabon' | |
order by population desc | |
limit 1; | |
select * | |
from population_years | |
where year = 2005 | |
order by population asc | |
limit 10; | |
select * | |
from population_years | |
where year = 2010 and population > 100; | |
select distinct country | |
from population_years | |
where country like '%Islands%'; | |
select * | |
from population_years | |
where year between 2000 and 2010 | |
and country = 'Indonesia' | |
order by year asc; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment