group by  
(case when convert(varchar(5),TD.attendtime,108) <= '13:00' then 0 else 1 end)
TD.attendtime是时间类型,解释一下这句sql的意思,和用途谢谢大家