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
declare @Time DATETIME = '01:05:00' select ((DATEPART(HOUR, @Time)*60) + (DATEPART(MINUTE, @Time)))