MulaiMulai sekarang secara gratis

Sorting multiple fields

ORDER BY can also be used to sort on multiple fields. It will sort by the first field specified, then sort by the next, and so on. As an example, you may want to sort the people data by age and keep the names in alphabetical order.

Try using ORDER BY to sort multiple columns.

Latihan ini adalah bagian dari kursus

Intermediate SQL

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

-- Select the release year, duration, and title sorted by release year and duration
___
Edit dan Jalankan Kode