I have the below query.
select cast(dateadd(minute, datediff(minute, TimeIn, TimeOut), 0) as time(0) )
In this i get the results from two columns in the format of hrs-min-seconds. I would like it in the format of minutes only . So 01:05:00 should be retrieved as 65.
How can i rewrite the query?
1 Answer