SQL CODE

select 日期=convert(varchar(10),reciveTime,120),       CH=(selecttop1 CH from tb     whereconvert(varchar(10),reciveTime,120)=convert(varchar(10),a.reciveTime,120)        orderby reciveTime desc),       个数=count(*)from tb a groupbyconvert(varchar(10),reciveTime,120)

posted @ 2013-07-25 11:10  寂夜冷风  阅读(167)  评论(0编辑  收藏  举报