subramaniam.chandrasekar - Thursday, February 15, 2018 6:36 AM
I see no mention of using an unconventional GROUP BY, so I don't understand the reason for your comment.
If the underlying date data types contain time information – and we must assume that they do, based on the requirement – then DATEPART can be used to break these datetimes out into hourly blocks, before grouping them.