I have an SQL Table which stores some data and a date (e.g. yyyymmdd) and a time (e.g. hhmmss). Now I need to select a count of the number of entries for every hour of the day.
- First count of entries will be: 000000 til 005959
- Second will be: 010000 til 015959
Is it possible to make this with a single select and then have an array of 24 count results? Otherwise I will need to create 24 selects to get all the data I want.