I would require your kind assistance in a query to fetch each minute per row b/w two dates in MySQL.
(this is part of a larger analysis that requires per-minute aggregation of stats. Group by would only work when that minute is available in the timestamps but I want all of the in b/w minutes as well)
e.g:
Given: start_date: 2022-10-01 20:00:00, end_date: 2022-10-01 21:00:00
Output:
.............................
date_min_col
.............................
2022-10-01 20:01:00
2022-10-01 20:02:00
2022-10-01 20:03:00
2022-10-01 20:04:00
2022-10-01 20:05:00
.
.
.
2022-10-01 21:00:00
2
Answers
I hope this query helps you:
It will return something like this:
If CTE is not supported then
The amount of synthetic tables and their sizes must allow to generate the numbers not less than the timerange width.
Also you may use service numbers table created in service database.