peterb58
IS-IT--Management
- Mar 20, 2005
- 110
I have a report for a call centre who want to cover their shift pattern.
The groups I require are 7am - 3pm, 3pm - 11pm and 11pm - 7am.
The calls are stored as date/time fields.
The problem lies in the 11pm - 7am section, both in their selection and ordering.
I am using this at the moment
select tonumber(totext(timevalue({CHistStatEx.NotificationTime}),"HH"))
case 7 to 14: "7am - 3pm"
case 15 to 22: "3pm to 11pm."
case 23 to 6: "11pm - 7am"
Using CRXI and Sybase 11
Thanks
The groups I require are 7am - 3pm, 3pm - 11pm and 11pm - 7am.
The calls are stored as date/time fields.
The problem lies in the 11pm - 7am section, both in their selection and ordering.
I am using this at the moment
select tonumber(totext(timevalue({CHistStatEx.NotificationTime}),"HH"))
case 7 to 14: "7am - 3pm"
case 15 to 22: "3pm to 11pm."
case 23 to 6: "11pm - 7am"
Using CRXI and Sybase 11
Thanks