Zkuste nahradit :
SUM(H_TIME) AS HANDLE_TIME
od :
MEDIAN(H_TIME) AS HANDLE_TIME
(řádek 3)
EDIT:Pro měsíce nahraďte:
select
MONTH, WEEK, DAY,
Autor:
select
MONTH,
A:
GROUP BY
MONTH
,WEEK
,DAY
Autor:
GROUP BY
MONTH
Pro týdny nahraďte:
select
MONTH, WEEK, DAY,
Autor:
select
MONTH, WEEK,
A:
GROUP BY
MONTH
,WEEK
,DAY
Autor:
GROUP BY
MONTH
,WEEK