• I managed to work out what all the date functions were doing, but was caught out by the select @hourDiff = @min-2 / 60. Since @hourDiff was defined as numeric(10,4), I thought it would come out OK as 1.5.

    So I definitely learned something, which is what it's all about! 😎