Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ASC

ASC

The ASC command is employed to arrange the returned data in ascending order.

The subsequent SQL statement selects all columns from the “Customers” table, sorted by the “CustomerName” column.

Example

SELECT * FROM Customers
ORDER BY CustomerName ASC