Challenge: Sort the Countries by Region and Capital
Swipe to start coding
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.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Can you explain this in more detail?
What are the next steps I should take?
Can you give me an example?
Awesome!
Completion rate improved to 2.44
Challenge: Sort the Countries by Region and Capital
Swipe to show menu
Swipe to start coding
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.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 2.44single