Descending | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2


As mentioned, By default, the ORDER BY keyword sorts the results in ascending order. How to come up with a results in descending order?

27th Mar 2017, 2:03 AM
LadyMaha - avatar
2 Answers
+ 4
use DESC keyword with order by for example select * from faculty ORDER BY salary DESC;
27th Mar 2017, 3:06 AM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 2
Use DESC key word Syntax Select * from Table-Name Order By Column_Name DESC Example Select * from Employee Order By Salary DESC
27th Mar 2017, 5:35 AM
Akwin Lopez
Akwin Lopez - avatar