Posted by richard.a.fletcher@googlemail.com on 10/14/77 11:45
Does this help? (I tend to use postgresql so now() may be something like today() or whatever). select case when created-now()<86400 then 1 else 0 end as priority from jobs .... order by priority desc, created desc.
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming