Report showing tickets closed by user, year to date.
So I currently was able to generate a report that breaks down tickets closed by owner by month, and it is great, buy my VP wants it much more high level, and only show year to date, with no monthly breakdown. I am not skilled when it comes to SQL so I was hoping someone here has experience with a similar report.
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
Druis
6 years ago
Top Answer
Try this:-
SELECT O.FULL_NAME as Engineer,
count(HD_TICKET.ID) AS Count_of_Tickets
FROM HD_TICKET
JOIN HD_STATUS ON (HD_STATUS.ID = HD_TICKET.HD_STATUS_ID)
LEFT JOIN USER O ON (O.ID = HD_TICKET.OWNER_ID)
WHERE (YEAR(HD_TICKET.CREATED) = YEAR(NOW()))
AND (HD_STATUS.NAME = 'Closed')
GROUP BY Engineer
Comments:
-
This is exactly what I needed, thank you for the quick response! - rjsmith480 6 years ago