Comment trier des noms dans l'ordre alphabétique dans SQL
SELECT id,
first_name,
last_name,
FROM customer
ORDER BY last_name ASC;
Clean Caracal
SELECT id,
first_name,
last_name,
FROM customer
ORDER BY last_name ASC;
SELECT * FROM table_name ORDER BY col1 ASC; -- ASCending is default
SELECT * FROM table_name ORDER BY col1 DESC; -- DESCending
SELECT * FROM table_name ORDER BY col1 DESC, col2; -- col1 DESC then col2 ASC