Itzik Ben-GanThe first day of the weekT-SQL Datetime functionsGrouping of time intervalsTypical problems