我正在尝试计算名为“ ADD CERT”的服务中的平均处理时间
某些上下文:
SELECT AVG(TIMEDIFF(DateTimeEnded, DateTimeEntered))AS AverageTime
FROM tblqueuenumber
WHERE Service = 'ADD CERT'
答案 0 :(得分:0)
由于您的格式为HH:MM:SS,所以我认为您需要在
select SEC_TO_TIME(avg(TIME_TO_SEC(DateTimeEnded)-TIME_TO_SEC(DateTimeEntered)))
FROM tblqueuenumber
WHERE Service = 'ADD CERT'