我有这个查询
select
substring((convert(varchar, PostTime, 120)), 1, 11),
AccountNumber,
sum(Cast(datediff(ss, TranTime, AuthProcessedTime) as money)) / COUNT(1) AverageTime,
COUNT(1) NumberOfCount
from
AuthTransactions WITH (NOLOCK)
group by
substring((convert(varchar, PostTime, 120)), 1, 11), AccountNumber
在此查询AverageTime
中以秒为单位。但我想以以下格式查看它,HH:MM:SS.msmsms
因为大多数时间结果都以毫秒为单位。那么是否有可能以这种格式查看结果?
提前致谢。