T
TraciAnnNeedsHelp
This may be a bit too challenging or maybe even impossible. Especially for a
newbie like me. If anyone is willing to help me tackle this I would be
extremely grateful.
Here is my original post on 3/3/2009:
I need to start monitoring my company's response time when a customer calls
for help. I already have a database that stores the data for the calls and
the responses but I don't have a way of calculating the results. Mainly
because the complexity of the difference between a stored value [CreateTime]
and the variable I need to calculate [StartSLA] which takes into account
non-business hours.
I have built a query using 2 tables which have the following fields used in
the query:
- [CreateTime]: Date/Time (UTC) when ticket is created
- [SLAType]: 1 = 24hr; 2 = 4hr
- [EventID]: 7 = Onsite Service
- [EventTime]: Date/Time (UTC) of Event
StartSLA is based on UTC field [CreateTime] but needs adjusted based on
business hours
Business hours are different based on [SLAType]
- If SLA is 4hr then Business Hours are 8:00:00 to 17:59:59, M-F not
including holidays
- If SLA is 24hr then Business Hours are 8:00:00 to 15:59:59, M-F not
including holidays
[CreateTime] Adjustments
- If [SLAType] In (1) And [CreateTime] Between 16:00 (previous business day)
And 12:00 (current business day) [StartSLA] = 12:00 (current business day)
- If [SLAType] In (1) And [CreateTime] Between 12:00 (current business day)
And 16:00:00 (current business day), [StartSLA] = 16:00:00 (current business
day)
- If [SLAType] In (2) And [CreateTime] Between 18:00 (previous business day)
And 08:00 (current business day), [StartSLA] = 08:00 (current business day)
- If [SLAType] In (2) And [CreateTime] Between 08:00 And 16:00 (current
business day), [StartSLA] = [CreateTime]
I know this looks a bit daunting, but I really need this and any help is
greatly appreciated.
Gratefully,
TraciAnn
newbie like me. If anyone is willing to help me tackle this I would be
extremely grateful.
Here is my original post on 3/3/2009:
I need to start monitoring my company's response time when a customer calls
for help. I already have a database that stores the data for the calls and
the responses but I don't have a way of calculating the results. Mainly
because the complexity of the difference between a stored value [CreateTime]
and the variable I need to calculate [StartSLA] which takes into account
non-business hours.
I have built a query using 2 tables which have the following fields used in
the query:
- [CreateTime]: Date/Time (UTC) when ticket is created
- [SLAType]: 1 = 24hr; 2 = 4hr
- [EventID]: 7 = Onsite Service
- [EventTime]: Date/Time (UTC) of Event
StartSLA is based on UTC field [CreateTime] but needs adjusted based on
business hours
Business hours are different based on [SLAType]
- If SLA is 4hr then Business Hours are 8:00:00 to 17:59:59, M-F not
including holidays
- If SLA is 24hr then Business Hours are 8:00:00 to 15:59:59, M-F not
including holidays
[CreateTime] Adjustments
- If [SLAType] In (1) And [CreateTime] Between 16:00 (previous business day)
And 12:00 (current business day) [StartSLA] = 12:00 (current business day)
- If [SLAType] In (1) And [CreateTime] Between 12:00 (current business day)
And 16:00:00 (current business day), [StartSLA] = 16:00:00 (current business
day)
- If [SLAType] In (2) And [CreateTime] Between 18:00 (previous business day)
And 08:00 (current business day), [StartSLA] = 08:00 (current business day)
- If [SLAType] In (2) And [CreateTime] Between 08:00 And 16:00 (current
business day), [StartSLA] = [CreateTime]
I know this looks a bit daunting, but I really need this and any help is
greatly appreciated.
Gratefully,
TraciAnn