SQL Query Orderby два или более столбца и количество символов
SELECT *
FROM table_name
ORDER BY RIGHT(name, 3) ASC, LEFT(town, 2);
Frightened Ferret
SELECT *
FROM table_name
ORDER BY RIGHT(name, 3) ASC, LEFT(town, 2);