Table of Contents

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