Conversion failed when converting the varchar value 'Hours' to data type int. This is my query:
Sum(Cast(Cast(DATEDIFF(HH, ld_time_tracker_start_time, fld_time_tracker_end_time)%3600/60 As int) +' Hours'+ Cast(DATEDIFF(MINUTE, ld_time_tracker_start_time, fld_time_tracker_end_time)As int )+'Minutes' As Int)) As [Time Spent(In hrs)]
I modified the above Code To:
+Cast('Hours' As Int)
+Covert(int,'Hours')
... and got the error message:
Conversion failed when converting the varchar value ' Hours' to data type int