I have the below query.
select cast(dateadd(minute, datediff(minute, TimeIn, TimeOut), 0) as time(0) )
I get the results from two columns in th
SQL Server Query:
SELECT cast(substring('02:47:00',1,2) AS int)*60+ cast(substring('02:47:00',4,2) AS int)+ cast(substring('02:47:00',7,2) AS int)/60.0 AS minutes
MYSQL Query:
SELECT TIME_TO_SEC('02:47:00') / 60
Result:
| MINUTES | ----------- | 167 |