Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Sorting Data | Sorting Retrieved Data
TEST SQL COURSE E2E

book Sorting Data

Moreover, we can sort the receiving data. To do this, we first need to get the data by using the SELECT operator, then the ORDER BY clause. The ORDER BY clause accepts column names by which the output will be sorted accordingly. Let's look at an example for better understanding.

1234
SELECT continent FROM country ORDER BY continent;
copy

It is essential that the ORDER BY clauses come last in the SELECT operator.

Explanation: In the example, we can see that the ORDER BY clause sorts the data by the continent column.

Compito

Swipe to start coding

Select the capital column from the country table. Next, sort the data from the capital column, retrieved using the SELECT statement.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 1
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Riassuma questo capitolo

Explain code

Explain why doesn't solve task

close

Awesome!

Completion rate improved to 16.67

book Sorting Data

Scorri per mostrare il menu

Moreover, we can sort the receiving data. To do this, we first need to get the data by using the SELECT operator, then the ORDER BY clause. The ORDER BY clause accepts column names by which the output will be sorted accordingly. Let's look at an example for better understanding.

1234
SELECT continent FROM country ORDER BY continent;
copy

It is essential that the ORDER BY clauses come last in the SELECT operator.

Explanation: In the example, we can see that the ORDER BY clause sorts the data by the continent column.

Compito

Swipe to start coding

Select the capital column from the country table. Next, sort the data from the capital column, retrieved using the SELECT statement.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

close

Awesome!

Completion rate improved to 16.67
Sezione 1. Capitolo 1
single

single

some-alt