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

Top 10: Fastest Growing Economies (Real GDP)

Top 10 Richest Countries in 2050. (updated in 2013)
Share this Post
Related posts
GDP of African countries
JUNE 14, 2026
A woman carries fruit to sell in the market in Lagos, Nigeria. Photograph: Sunday Alamba/AP Two years ago Ghana s statistical…
Read MoreGDP of African countries 2014
JUNE 14, 2026
On Sept. 30, Kenya announced the results of its “rebasing”—a recalculation of its gross domestic product to include previously…
Read More










