course content

Course Content

Introduction to SQL

Challenge: Sort Countries in Ascending OrderChallenge: Sort Countries in Ascending Order

Task

Write an SQL query to retrieve all country name values from the country table, and display the results sorted in ascending order.

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 8
toggle bottom row