Hello. I am trying to figure out how to take a table of timestamps and activity duration and break it into intervals, where it groups the duration into the time spent in each 15 minute interval. I have included a sample of the data and output. Is there any way to pull this in Access (or SQL)?
Raw Data
Employee Activity TimeStampStart TimeStampEnd TotalDuration
Doe,John SomeActivity 12/16/13 9:06:02 AM 12/16/13 9:57:14 AM 0:51:12
Smith,Jane OtherActivity 12/16/13 9:22:15 AM 12/16/13 10:06:55 AM 0:44:40
Query to break out the total duration time in to the 15 minute interval it fell into
Employee Activity Interval IntervalDuration
Doe,John SomeActivity 12/16/13 9:00:00 AM 0:08:58
Doe,John SomeActivity 12/16/13 9:15:00 AM 0:15:00
Doe,John SomeActivity 12/16/13 9:30:00 AM 0:15:00
Doe,John SomeActivity 12/16/13 9:45:00 AM 0:12:14
Smith,Jane OtherActivity 12/16/13 9:15:00 AM 0:07:45
Smith,Jane OtherActivity 12/16/13 9:30:00 AM 0:15:00
Smith,Jane OtherActivity 12/16/13 9:45:00 AM 0:15:00
Smith,Jane OtherActivity 12/16/13 10:00:00 AM 0:06:55
Thanks!!!
Raw Data
Employee Activity TimeStampStart TimeStampEnd TotalDuration
Doe,John SomeActivity 12/16/13 9:06:02 AM 12/16/13 9:57:14 AM 0:51:12
Smith,Jane OtherActivity 12/16/13 9:22:15 AM 12/16/13 10:06:55 AM 0:44:40
Query to break out the total duration time in to the 15 minute interval it fell into
Employee Activity Interval IntervalDuration
Doe,John SomeActivity 12/16/13 9:00:00 AM 0:08:58
Doe,John SomeActivity 12/16/13 9:15:00 AM 0:15:00
Doe,John SomeActivity 12/16/13 9:30:00 AM 0:15:00
Doe,John SomeActivity 12/16/13 9:45:00 AM 0:12:14
Smith,Jane OtherActivity 12/16/13 9:15:00 AM 0:07:45
Smith,Jane OtherActivity 12/16/13 9:30:00 AM 0:15:00
Smith,Jane OtherActivity 12/16/13 9:45:00 AM 0:15:00
Smith,Jane OtherActivity 12/16/13 10:00:00 AM 0:06:55
Thanks!!!