I am having hours(06:42,9:30,..) in DB. I want to subtract the hours from 08:00
I tried the below query
Select totalhrsinside as hour,convert(varchar, dateadd(minute, -8, totalhrsinside), 100) as diff from table_name
But it does not work as expected
Output should be
hour diff
06:42 -01:18
09:30 01:30