Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Population Sort | Sorting Retrieved Data
course content

Course Content

Introduction to SQL

Challenge: Population SortChallenge: Population Sort

Task

From the country table, retrieve the data from the population column, using a SELECT statement, and sort it in ascending order (default sort direction).

Here's a short example of the country table:

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

Everything was clear?

Section 2. Chapter 2
toggle bottom row
course content

Course Content

Introduction to SQL

Challenge: Population SortChallenge: Population Sort

Task

From the country table, retrieve the data from the population column, using a SELECT statement, and sort it in ascending order (default sort direction).

Here's a short example of the country table:

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

Everything was clear?

Section 2. Chapter 2
toggle bottom row
some-alt