SQL ASC Statement: Sort Data Ascending
In SQL, ASC (ascending) is used to specify that the query results are to be sorted in ascending order based on the specified column, meaning the data will be arranged in order from smallest to largest.
For example, if you need to sort by the value of a certain column in ascending order, you can use the ASC keyword. The sample code is as follows:
SELECT * FROM table_name ORDER BY column_name ASC;
The above code will return a result set sorted in ascending order based on the values in the column_name column.
If no ASC or DESC keyword is specified, the data will be sorted in ascending order by default.