Starlit Daily

📚 › SQL: databases

4. ORDER BY and LIMIT

Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.

ORDER BY sorts results. DESC sorts high to low and ASC low to high. LIMIT keeps only the first rows.

Ver ejemplo

SELECT name, marks FROM students ORDER BY marks DESC LIMIT 5;

← Volver al curso