Return the newest rows first.
Section: basic selects
Sort and limit results
sql
sql
SELECT id, email, created_at FROM users ORDER BY created_at DESC LIMIT 20;Explanation
A common pattern for feeds, admin lists, and dashboards.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing basic selects