Starlit Daily

📚 › SQL: databases

4. ORDER BY and LIMIT

इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।

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

उदाहरण देखें

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

← कोर्स पर वापस