Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge Order By | Filtering Statements
SQL Tutorial for Beginners

book
Challenge Order By

Remember how to order the records by multiple columns. Let's say, you want to order all records by singer's name first and then by song's title:

SELECT * FROM songs
ORDER BY singer, title
12
SELECT * FROM songs ORDER BY singer, title
copy
Tarea

Swipe to start coding

Select records with AC/DC songs, and order it by title from A to Z, and then by album from Z to A.

Solución

select * from songs
where singer = 'AC/DC'
order by title, album desc

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 6

Query ResultQuery Result
No query executed yet...

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt