Завдання: Сортувати країни за регіоном і столицею
Here is the country
table we are working with:
Завдання
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.
Рішення
9
1
2
3
SELECT name, region,capital
FROM country
ORDER BY region DESC, capital DESC;
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
9
1
No query executed yet... |
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат