统计如下一列时间
2010-05-31 01:04:41.413
2010-05-31 01:06:28.857
2010-05-31 02:09:21.570
2010-05-31 02:11:26.467
2010-05-31 07:52:59.233
2010-05-31 07:59:55.533
2010-05-31 17:39:29.357
的平均值,也就是平均时间
统计方法:将小时,分,秒分别取平均值。
select avg(datepart(hh,create_date)) as 'HH',avg(datepart(mi,create_date)) as 'MM',avg(datepart(ss,create_date)) as 'SS'
from dbo.S_Log