I'm working in MySql, I need to get a MySQL query with all the records in a table grouped by hour, but I also need the times when there are no records.
For example, I have a users table, I want to get registered users by the hour and to give me something like this:
1:00 10
2:00 15
3:00 3
4:00 0
5:00 0
6:00 1
.
.
.
24:00 12
Does anyone know how to do it?