kupe
Technical User
- Sep 23, 2002
- 376
I'd like to sort the files by the date field (DoA), when when it is used like this, how do I, please, Gurus?
... CONCAT(TO_DAYS(Curdate()) - TO_DAYS(DoA), 'days') AS LateBy ... ORDER BY LateBy DESC;
... CONCAT(TO_DAYS(Curdate()) - TO_DAYS(DoA), 'days') AS LateBy ... ORDER BY LateBy DESC;