course content

Course Content

Introduction to SQL

Challenge: Sort the Countries by Region and CapitalChallenge: Sort the Countries by Region and Capital


Retrieve three columns from the country table using the SELECT statement, namely: name, region, and capital (please retrieve these columns in this order). Sort the result by two of them - first by region in descending order, then by capital, also in descending order.

Here's a short example of the country table:

1JapanAsiaEastern Asia377829Tokyo126714000
3MexicoNorth AmericaCentral America1958201Mexico City98881000
15MaltaEuropeSouthern Europe316Valletta380200

Everything was clear?

Section 2. Chapter 6
toggle bottom row