I have database with multiple evens.
StartDate EndDate
-----------------------------
2017-03-18 2017-03-20
2017-10-10 2017-10-10
2017-11-30 2017-12-01
What I need is to get list of used dates which should look like:
2017-03-18
2017-03-19
2017-03-20
2017-10-10
2017-11-30
2017-12-01
These events may be quite a lot and they might be overlapping so the query must be very quick and records grouped by date. If it would be quickier to select unused days it doesn't matter. I just need to find out which days in current year are used.