sql group by hour 按小时分组统计

客官°小女子只卖身不卖艺 2021-11-13 16:54 1136阅读 0赞

Time字段以小时分组统计

select datepart(hour,time) hour,count(1) count from table
where
Similarity<75
group by datepart(hour,time)
order by count desc

From:https://www.cnblogs.com/xuejianxiyang/p/11202931.html

转载于:https://www.cnblogs.com/xuejianxiyang/p/11202931.html

发表评论

表情:
评论列表 (有 0 条评论,1136人围观)

还没有评论,来说两句吧...

相关阅读