I have two fields in sql date1 varchar(4) and date2 varchar(4). The date format is just HHmm where HH is the hours and mm is the minutes.
Is there anyway in SQL which we can add the two timestamps together and work out how many hours and minutes?
e.g.
date1 = 0230 date2 = 0145 will total 0415
date1 = 0030 date2 = 0035 will total 0105
1 Answer