sql select in descending order code example Example: order by in sql ORDER BY: is for sorting result either in descending or ascending order.