/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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.
Answer Summary:
0 Comments   [ + ] Show comments

Comments


Answer Chosen by the Author

0
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

Answered 06/01/2018 by: Druis
Second Degree Green Belt

  • This is exactly what I needed, thank you for the quick response!

Share