Question
count
Hi there,
I've got a database of website statistics. Within it i have a field with the time of each session.
I am aiming to find the most popular times of day, and to do so i want to count the number of users in each hour of the day.
I can get just the hour to display using #DATEFORMAT(xdate, "HH")#, however i can't seem to get a count of how many of each there are.
I've tried using 'count' in a query but it doesn't output the data in the way i need, which is:
Hour Count
12 6
13 6
14 9
15 3 etc...
Any help would be much appreciated.
Thanks
James
I've got a database of website statistics. Within it i have a field with the time of each session.
I am aiming to find the most popular times of day, and to do so i want to count the number of users in each hour of the day.
I can get just the hour to display using #DATEFORMAT(xdate, "HH")#, however i can't seem to get a count of how many of each there are.
I've tried using 'count' in a query but it doesn't output the data in the way i need, which is:
Hour Count
12 6
13 6
14 9
15 3 etc...
Any help would be much appreciated.
Thanks
James