What if everything we know

Total GDP of Africa

- 1. Show the total population of the world.
SELECT SUM(population) pop_world
FROM world
- 2. List all the continents - just once each.
SELECT DISTINCT continent
- 3. Give the total GDP of Africa
SELECT SUM(gdp) gdp_Africa
WHERE continent = 'Africa'
- 4. How many countries have an area of at least 1000000
SELECT COUNT(name) num_countries
WHERE area >= 1000000
- 5. What is the total population of ('France', 'Germany', 'Spain')
SELECT SUM(population) total_pop
WHERE name IN ('France', 'Germany', 'Spain')
- 6. For each continent show the continent and number of countries.
SELECT continent, COUNT(name) num_countries
GROUP BY continent
- 7. For each continent show the continent and number of countries with
- populations of at least 10 million.
WHERE population >= 10E6
- 8. List the continents with total populations of at least 100 million.
SELECT continent
HAVING SUM(population) >= 100E6
Source: github.com
RELATED VIDEO
IHS Top 10 Economic Predictions for 2013
IHS Top 10 Economic Predictions for 2013
Top 10: Fastest Growing Economies (Real GDP)
Top 10: Fastest Growing Economies (Real GDP)
Top 10 Richest Countries in 2050. (updated in 2013)
Top 10 Richest Countries in 2050. (updated in 2013)
RELATED FACTS
Share this Post

Related posts

Combined GDP of Africa

Combined GDP of Africa

APRIL 28, 2024

In June, African leaders signed a 26-nation pact — the Tripartite Free Trade Agreement (TFTA) — to create a common market…

Read More
GDP of African Nations

GDP of African Nations

APRIL 28, 2024

These are interesting times for people who care about Africa’s future. Across the world, a growing community of economists…

Read More