I need to generate a report where I simplify (consolidate) work Schedules. The current table is One Line = One Week, where the schedule shows 0 for day scheduled to work and 1 for a day scheduled off. What I need is one line for an arbitrary number of weeks showing the first and last day of each schedule change. In other words, given this:
I need a query that will give me this:
I cannot for life of me get this. Can it be done?