SQL order by keyword

order by keyword is used to short the result by a column.
You can short the result in ascending or descending order also by using ASC/DESC keywords.


SYNTAX :
SELECT column_name(s)
FROM table_name
ORDER BY column_name(s) ASC|DESC ;

Table Name 'customers'

id

name

age

city

bill

1Tom34Paris5300
2Jhony51London 400
3Ram64Delhi20000.7
4Simon23Portland32.65



Online Execute/Compile