Heard a lot of good things about SingleStore and want to give it a try.
The problem I’m having is as follows:
I have ‘shifts’ table with the following ranged data I want to make aggregates on:
ID | started_at | ended_at | costs
1 | 2022-08-23 08:00 | 2022-08-23 11:00 | 150
2 | 2022-08-23 08:30 | 2022-08-23 09:30 | 50
Is there any functionallity in SingleStore to easilly get for example the following data:
time | total_costs | total_count
2022-08-23 08:00 | 75 | 2
2022-08-23 09:00 | 75 | 2
2022-08-23 10:00 | 50 | 1
Hope someone can get me on the right way.
Thanks!