Accruing over time (non-overlapping) - technique?
问题 I'm trying to find a better way of doing a Crystal Report (Someone Else's)... Add up non-overlapping time in groups. This is evidently an age-old problem... Is there a technique of getting Adjusted (start/end) times, per record, to remove common/over-lap time, within subgroups --using straight SQL (although I find I can do CTEs) Assume initial order-by for Start Time (and/or Group, SubGroup) and Start and End are separate fields. A kind-a graphic example: Group 1 SubGroup A Tkt 1 |--start&end