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

AUGUST 09, 2020

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 countries

GDP of African countries

AUGUST 09, 2020

A woman carries fruit to sell in the market in Lagos, Nigeria. Photograph: Sunday Alamba/AP Two years ago Ghana s statistical…

Read More