User Tools

Site Tools


sql:order_by

SQL - ORDER BY

Sort the returned records

SELECT fname, lname
FROM Students
WHERE rollno >= 1234
ORDER BY lname

Order in descending order

SELECT fname, lname
FROM Students
WHERE rollno >= 1234
ORDER BY lname DESC

sql/order_by.txt · Last modified: 2022/07/08 09:01 by 185.92.25.28

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki