For example I have data in interval from '2020-01-01' to '2021-01-31' how can I get specific days from this months like first 2 days and last 3 days for each month.
Result I want:
| date | col1 |
|---|---|
| '2020-01-01' | x |
| '2020-01-02' | x |
| '2020-01-29' | x |
| '2020-01-30' | x |
| '2020-01-31' | x |
| '2020-02-01' | x |
| '2020-02-02' | x |
| '2020-02-26' | x |
| '2020-02-27' | x |
| '2020-02-28' | x |
| '2020-03-01' | x |
| '2020-03-02' | x |
| '2020-03-29' | x |
| '2020-03-30' | x |
| '2020-03-31' | x |
et cetera