Michael091170
Technical User
I need to run a query on my database that measures the difference between two datetime values. Submitted and Resolved.
This is reasonably simple enough with a datediff function. The problem comes as have I factor in core working hours and week days.
Our core hours are Monday - Friday 9:00 - 17:00 so for example:
If a call is logged at 16:45 on Friday and resolved on 09:10 the following Monday the real time to resolution is 25mins. Datediff however includes the weekend and non core hours.
How would you apply these conditions in an expression.
If anyone's done something similar before I'd be interested to find out how you achieved it.
Thanks
This is reasonably simple enough with a datediff function. The problem comes as have I factor in core working hours and week days.
Our core hours are Monday - Friday 9:00 - 17:00 so for example:
If a call is logged at 16:45 on Friday and resolved on 09:10 the following Monday the real time to resolution is 25mins. Datediff however includes the weekend and non core hours.
How would you apply these conditions in an expression.
If anyone's done something similar before I'd be interested to find out how you achieved it.
Thanks