aaronlglover
Technical User
Hey All,
Does anyone have some SQL to get me started or maybe a link to a help guide that will get me started? I have a table with schedule exception detail that I need to summarize into half hour incrememnts. Here is an example of what the schedule exception detail looks like.
Exception | Start Moment | Stop Moment | Duration |
Break | 3/17/09 02:00 | 3/17/09 03:00 | 60 |
Lunch | 3/17/09 05:00 | 3/17/09 06:15 | 75 |
Break | 3/17/09 07:30 | 3/17/09 08:15 | 45 |
The Query should produce something that looks like this.
Interval | BREAK | LUNCH
02:00 | 30 | 0 |
02:30 | 30 | 0 |
05:00 | 0 | 30 |
05:30 | 0 | 30 |
06:00 | 0 | 15 |
07:30 | 30 | 0 |
08:00 | 15 | 0 |
Thanks!!
Does anyone have some SQL to get me started or maybe a link to a help guide that will get me started? I have a table with schedule exception detail that I need to summarize into half hour incrememnts. Here is an example of what the schedule exception detail looks like.
Exception | Start Moment | Stop Moment | Duration |
Break | 3/17/09 02:00 | 3/17/09 03:00 | 60 |
Lunch | 3/17/09 05:00 | 3/17/09 06:15 | 75 |
Break | 3/17/09 07:30 | 3/17/09 08:15 | 45 |
The Query should produce something that looks like this.
Interval | BREAK | LUNCH
02:00 | 30 | 0 |
02:30 | 30 | 0 |
05:00 | 0 | 30 |
05:30 | 0 | 30 |
06:00 | 0 | 15 |
07:30 | 30 | 0 |
08:00 | 15 | 0 |
Thanks!!