Reputation: 113
All Columns have a timestamp from that I can get that information. I tried already this but I don't get it to work!!
Upvotes: 2
Views: 125
Reputation: 474
if for example you want to group the number of occurences of a row by the hour part of the time stamp, try something like this (MySQL syntax):
select hour(TimeStamp) as interval, count(*) from data group by interval;
Upvotes: 4
Reputation: 6943
Did you try
... WHERE timestamp > 1305211123 AND timestamp < 1305215094
This is for unix timestamp of course, if you have datefield instead it's pretty similar though.
Upvotes: 3