SELECT DatePart(hour, hour) FROM Table WHERE hour is not null
GROUP BY dateadd(hour, datediff(hour, 0, time_column), 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)