I have a responses table, which has a timestamp field (created_at), an id, and a foreign key (context_id)
For a given context, I'd like to see how many responses occurred over 5 minute intervals.
It is a very similar situation to the following question :
Sql Server: Count records (including zero) per ten-minute intervals
Except that I am not using SQL Server, I'm using MySQL, but would like to see a more generic solution.
There will be many 5 minute intervals in which there are 0 responses, which I'd like included in the results.