Sorting in SQL with Order By Ascending and Descending Part 14

Опубликовано: 24 Май 2026
на канале: Data Science Man
3
0

Learn how to Sort records in Ascending and Descending order in SQL.

Queries used in this chapter are as follows
ORDER BY - ASC | DESC

SELECT * FROM `customers` ORDER BY `ContactName` ASC

SELECT * FROM `customers` ORDER BY Country ASC, ContactName DESC

SELECT * FROM `customers` ORDER BY Country, ContactName