Sectionย 2. Chapterย 6
single
Challenge: Sort the Countries by Region and Capital
Swipe to show menu
Task
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
Everything was clear?
Thanks for your feedback!
Sectionย 2. Chapterย 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat