course content

Course Content

Introduction to SQL

ChallengeChallenge

Task

Write an SQL query to retrieve the average value of a surfacearea column, considering only those records where the surfacearea exceeds 300000.

Here's a short example of the country table:

idnamecontinentregionsurfaceareacapitalpopulation
1JapanAsiaEastern Asia377829Tokyo126714000
2LatviaEuropeNULL64589Riga2424200
3MexicoNorth AmericaCentral America1958201Mexico City98881000
.....................
15MaltaEuropeSouthern Europe316Valletta380200

Everything was clear?

Section 5. Chapter 2
toggle bottom row