How can I sort the results in descending way? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I sort the results in descending way?

19th Dec 2016, 7:09 AM
Fram Rodríguez
Fram Rodríguez - avatar
3 Answers
+ 3
ORDER BY column DESC
19th Dec 2016, 7:42 AM
Antek
0
Use the clause ORDER BY COLUMNNAME DESC... Use the COLUMNNAME only if you want to order by in descending way with reference to a column.
20th Dec 2016, 1:39 AM
Raman Kumar
Raman Kumar - avatar
- 1
hi fram...at the end of sql statement just type DESC and name of column you want to sort by.
19th Dec 2016, 7:42 AM
Ali Ahmed Ramadan