CONVERT(
nvarchar(
11),UpdateTime,
120),
count(
1)
from Log
where UpdateTime
>‘2020-05-01‘ and UpdateTime
< ‘2020-05-20‘
group by CONVERT(
nvarchar(
11),UpdateTime,
120)
order by CONVERT(
nvarchar(
11),UpdateTime,
120)
asc
【SQL】SQL优化:日期分组来统计数量
标签:图表 HERE 优化 nbsp 统计图 统计 count convert har