I have a table in which I have queries that return data for a time range. The rows are sparse and events can be days apart.
I am looking for a way to get the data from the range + add the row before the range starts (which can be at any timestamp which is less than the start).
For example:
2020-01-01 xxxxxxx
2020-01-12 xxxxxxx
2020-02-10 xxxxxxx
2020-02-11 xxxxxxx
2020-02-15 xxxxxxx
If I query from 2020-02-08 to 2020-02-14, I would get:
2020-02-10 xxxxxxx
2020-02-11 xxxxxxx
But I would like to get:
2020-01-12 xxxxxxx
2020-02-10 xxxxxxx
2020-02-11 xxxxxxx
How can this be done?