SELECT trunc(to_date(substr(CLOSEDATE,1,10), 'DD-MM-YY')),
substr(FIXCODE, 1, 4),
COUNT(*)
FROM opencall
WHERE (opencall.status > 15 OR opencall.status = 6)
AND FIXCODE like 'HPS0%'
AND trunc(to_date(substr(CLOSEDATE,1,10), 'DD-MM-YY')) BETWEEN '01-JAN-14' AND '24-DEC-14'
GROUP BY trunc(to_date(substr(CLOSEDATE,1,10),'DD-MM-YY')),
substr(FIXCODE, 1, 4)
ORDER BY trunc(to_date(substr(CLOSEDATE,1,10), 'DD-MM-YY'))
I have this piece of code which counts the number of calls raised per day against a specific fix code.
Is there any way to exclude weekends for 2014?
While the support desk is open weekends the call numbers drop off quite heavily and i'd like to just focus on calls raised monday to friday?