ORDER BY IN Value

Posted on Tuesday, April 20, 2010 in MySQL

Query will order results by newest tasks first with exception that any task 100% complete will be displayed last
SELECT *
FROM tasks
ORDER BY task_percent_complete IN(100) ASC, task_datetime DESC