bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL ASC Keyword

Concept visual

SQL ASC Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

ASC Keyword

Previous

❮ SQL Keywords

Next

Asc

The ASC

command is used to sort the data returned in ascending order. The following SQL statement selects all the columns from the "Customers" table, sorted by the "CustomerName" column:

Example

SELECT * FROM Customers
ORDER BY CustomerName ASC;

Previous

❮ SQL Keywords

Next

Previous

SQL AS Keyword

Next

SQL BACKUP DATABASE Keyword