I have an expressionCAST((time_in - time_out) as time) ,
where time_in and time_out are datetime . The expression returns 01:48:00.0000000 .
How can I count the number of minutes to return 108?
I have an expressionCAST((time_in - time_out) as time) ,
where time_in and time_out are datetime . The expression returns 01:48:00.0000000 .
How can I count the number of minutes to return 108?
With the help of the function DATEDIFF , CAST not needed here.
SELECT DATEDIFF(MI, time_in, time_out); Source: https://ru.stackoverflow.com/questions/598271/
All Articles