Hello, in the query I have below it results in multiple 1's, 2's, 3's, 4's, and 5's in the Client Score column:
SELECT
ROUND (TT.CLIENT_SCORE,0) AS CLIENTSCORE,
ROUND (TT.WORK_TIME/360,2) AS MTTR,
COUNT(*) AS TOTAL
FROM
ARADMIN.TTTICKETINFO TT
WHERE
(ARADMIN.CONVERT_REMEDY_DATE(TT.CREATE_DATE)) between TO_DATE('04/24/06','MM/DD/YY HH24:MI')
and TO_DATE('04/25/06','MM/DD/YY HH24:MI')
AND (TT.TRANSPORT_METHOD LIKE ('T1%'))
AND (TT.MTTR_REPORTABLE IN ('1'))
AND (TT.SERVICE_OUT_INDICATOR IN ('1'))
GROUP BY
TT.CLIENT_SCORE,
TT.WORK_TIME
What I need it to to is show a '1' row with an average of the MTTR column, then a count in the Total column, then a '2'row with an average of the MTTR column, then a count in the Total column, and so on. Does anyone know of a way to achieve this?
Thank you.
Thank you.
SELECT
ROUND (TT.CLIENT_SCORE,0) AS CLIENTSCORE,
ROUND (TT.WORK_TIME/360,2) AS MTTR,
COUNT(*) AS TOTAL
FROM
ARADMIN.TTTICKETINFO TT
WHERE
(ARADMIN.CONVERT_REMEDY_DATE(TT.CREATE_DATE)) between TO_DATE('04/24/06','MM/DD/YY HH24:MI')
and TO_DATE('04/25/06','MM/DD/YY HH24:MI')
AND (TT.TRANSPORT_METHOD LIKE ('T1%'))
AND (TT.MTTR_REPORTABLE IN ('1'))
AND (TT.SERVICE_OUT_INDICATOR IN ('1'))
GROUP BY
TT.CLIENT_SCORE,
TT.WORK_TIME
What I need it to to is show a '1' row with an average of the MTTR column, then a count in the Total column, then a '2'row with an average of the MTTR column, then a count in the Total column, and so on. Does anyone know of a way to achieve this?
Thank you.
Thank you.