Hi,
I need to produce a SQL report showing the number of times a particular event happened in each hourly period during the day. My table has a date/time column on it containing the time the event occurred.
How do I do a count of the number of rows that fall within each each hourly period during the day?
So I need to see output like this...
10:00 - 11:00 12 times
11.00 - 12:00 53 times
12:00 - 13:00 5 times etc
I'm guessing it would be a Group By, but how do you group by each hour? Thanks in advance.