Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Завдання: Сортування населення Північної Америки | Фільтрація Даних
Вступ до SQL

book
Завдання: Сортування населення Північної Америки

Here is the country table we are working with:

Завдання

Swipe to start coding

Write an SQL query to retrieve the id,name, population, and continent from the country table (please retrieve these columns in this order), returning only rows with the 'North America' continent, and displaying the result in descending order by population.

Рішення

SELECT id, name, population, continent
FROM country
WHERE continent='North America'
ORDER BY population DESC;
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2

toggle bottom row
Query ResultQuery Result
No query executed yet...
some-alt