I am looking for a way to Group By a neumber range. For example, each row will have a number range in the first column:
0-100
101-200
201-300
...and so on. Here is the query in its current form:
which gives me a list of each ticket score. I'm not sure how to group in the ranges mentioned above. Hopefully I explained this clearly.
0-100
101-200
201-300
...and so on. Here is the query in its current form:
Code:
SELECT
(ROUND (TT.TICKET_SCORE,0)) AS TICKETSCORE,
avg(ROUND (TT.WORK_TIME/3600,2)) AS MTTR,
COUNT(*) AS TOTAL
FROM
ARADMIN.TTTICKETINFO TT
WHERE
(ARADMIN.CONVERT_REMEDY_DATE(TT.CREATE_DATE))
between TO_DATE('03/1/06','MM/DD/YY HH24:MI')
and TO_DATE('04/1/06','MM/DD/YY HH24:MI')
AND (TT.TRANSPORT_METHOD LIKE ('%DSL%'))
AND (TT.MTTR_REPORTABLE IN ('1'))
AND (TT.SERVICE_OUT_INDICATOR IN ('1'))
GROUP BY
ROUND (TT.TICKET_SCORE,0);
which gives me a list of each ticket score. I'm not sure how to group in the ranges mentioned above. Hopefully I explained this clearly.