Course Content
Introduction to SQL
Introduction to SQL
Challenge: Sort the Countries by Region and Capital
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to 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.
Thanks for your feedback!
Challenge: Sort the Countries by Region and Capital
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to 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.
Thanks for your feedback!
Challenge: Sort the Countries by Region and Capital
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to 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.
Thanks for your feedback!
Here is the country
table we are working with:
Swipe to show code editor
Write an SQL query to 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.