I apologize for the poorly worded title, I have been given a task beyond my limited skillset and was hoping someone might help.
We have employees who have 24/7 schedules for booking work and field assignments (over weekends as well) but this does not apply to vacation. Because of this I have been tasked to break a single date range up across weekends (and exclude them)
For Example:
Start Date: 30/04/2015 End Date: 13/05/2015
30/04/2015, 01/05/2015
04/05/2015, 05/05/2015, 06/05/2015, 07/05/2015, 08/05/2015,
11/05/2015, 12/05/2015, 13/05/2015,
Note: The weekends have been excluded and the date range has been split into three across the three weeks.
Preferably: Include the start and end points for each range like so
30/04/2015 - 01/05/2015 --(the same as it is the start and end dates)
04/05/2015 - 08/05/2015
11/05/2015 - 13/05/2015
I have no idea if this is even possible due to my very limited knowledge and hope I have explained enough so that some kind soul could potentially see if such a thing is even possible.
The database application we use is TSQL on SQL 2008.
Many thanks.