Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Desafio: Ordenação de População | Classificando Dados Recuperados
Introdução ao SQL

book
Desafio: Ordenação de População

Here is the country table we are working with:

Tarefa

Swipe to start coding

From the country table, retrieve the data from the population column, using a SELECT statement, and sort it in ascending order (default sort direction).

Here's a short example of the country table:

idnamecontinentregionsurfaceareacapitalpopulation
1JapanAsiaEastern Asia377829Tokyo126714000
2LatviaEuropeNULL64589Riga2424200
3MexicoNorth AmericaCentral America1958201Mexico City98881000
.....................
15MaltaEuropeSouthern Europe316Valletta380200

Solução

SELECT population
FROM country
ORDER BY population;
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2

Query ResultQuery Result
No query executed yet...

Pergunte à IA

expand
ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt