Probeer te vervangen:
SUM(H_TIME) AS HANDLE_TIME
door:
MEDIAN(H_TIME) AS HANDLE_TIME
(regel 3)
EDIT:Vervang voor de maanden:
select
MONTH, WEEK, DAY,
Door:
select
MONTH,
En:
GROUP BY
MONTH
,WEEK
,DAY
Door:
GROUP BY
MONTH
Vervang voor de weken:
select
MONTH, WEEK, DAY,
Door:
select
MONTH, WEEK,
En:
GROUP BY
MONTH
,WEEK
,DAY
Door:
GROUP BY
MONTH
,WEEK