CodeAgeBy Sitezack
Your data, your database 🗄️SQL with real data0 XP
Chapter progress0/5

Lesson 4 of 6

ORDER BY: rank by plays

ORDER BY column sorts the result: ASC for ascending (default), DESC for descending.

It's the ranking tool: "most played first", "newest to oldest"…

SELECT title FROM playlist ORDER BY plays ASC;

🎯 Your goal

Display the title of the playlist tracks, from most played to least played (plays descending).

PRO lesson

This advanced chapter is part of CodeAge PRO. Unlock it to keep your adventure going.

Discover PRO