求SQL先按大于当前时间升序排序,再按小于当前时间降序排序现在有一个会议表现在要求列出会议列表先按还没有到会议时间升序排序,再按已过会议时间的倒序排序这个SQL怎么写谢谢[解决办法]给测试数据[解决办法]select * from tb order by case when meetingtime>=getdate() then 0 else 1 end,abs(datediff(ss,getdate(),meetingtime)) asc