SELECT SUM(
CASE WHEN RESTORE_TIMESTAMP IS NOT NULL THEN DATEDIFF(MI,SHUTDOWN_TIMESTAMP,RESTORE_TIMESTAMP)
ELSE DATEDIFF(MI,SHUTDOWN_TIMESTAMP,GETDATE()) END )
AS downtime
FROM TX_QUAD_STATUS NOLOCK
我收到了这个错误。
Arithmetic overflow error converting expression to data type int.