Depending on your need for accuracy, the DiffInHours2 method below will give a more accurate result if the difference in time is less than 24 days.Select DiffInHours1 = datediff(minute,DT1,DT2)/60.00, DiffInHours2 = datediff(ms,0,DT2-DT1)/3600000.00from ( select DT1 = convert(datetime,'2009-06-25 10:00:01.847'), DT2 = convert(datetime,'2009-06-25 10:59:59.333') ) aResults:DiffInHours1 DiffInHOurs2 -------------------- ------------------------ .983333 .9993016666
CODO ERGO SUM