It's a calendar for booking car installations (hands-free kits, alarms, alco-locks etc.) and there's a certain number of work hours available each day, so I'm looking to create a list of the next 10 dates where there are hours still available.
I've already written a bunch of sql to fetch upcoming bookings and how many hours are still available on those dates, but on dates where there are no bookings, nothing shows up, obviously, so I'm looking for a query where the base is the next x number of days, and I'll outer join other tables to check if the number of available hours on each date is affected by existing bookings or "deviations" as I've chosen to call them (people on vacation etc.).
I just need sql to select a column of the next x dates to get me started, but I don't even know if that's possible.