In the past I mostly have given the advice to break down all date intervals into the smallest part (often minutes) and then group by the minute. -- Prepare sample data DECLARE @Data TABLE ( RecID INT IDENTITY ( 1 , 1 ) PRIMARY KEY CLUSTERED , CreateDate
Read More...