SQL Sorting Results

The SQL ORDER BY tag is used to sort the data in ascending or descending order. Some database sorts query results in ascending order by default. Syntax:- The syntax of ORDER BY tag which would be used to sort result in ascending or descending order is as follows:- SELECT col FROM table_name [WHERE condition] [ORDER […]