Просмотр поста #69876: >>>ВОПРОСЫ НОВИЧКОВ<<<

.
L!MP

Zidan_@777@,

SELECT IF(a >= b, a-b, b-a) AS `diff` FROM `table` ORDER BY `diff`  DESC