Created
July 17, 2020 16:15
-
-
Save sovietsinner/e01fcd910dfc76bb06cbb3902da2047d to your computer and use it in GitHub Desktop.
World Populations SQL Practice 1
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
SELECT DISTINCT year from population_years; | |
SELECT * | |
FROM population_years | |
WHERE country IS "Gabon" | |
ORDER BY population DESC | |
LIMIT 1; | |
SELECT * | |
FROM population_years | |
WHERE year IS "2005" | |
ORDER BY population ASC | |
LIMIT 10; | |
SELECT * | |
FROM population_years | |
WHERE population > 100 AND year IS "2010"; | |
SELECT DISTINCT country | |
FROM population_years | |
WHERE country LIKE "%ISLANDS%"; | |
SELECT * | |
FROM population_years | |
WHERE country IS "Indonesia" AND (year = "2000" or year = "2010") ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment