I am looking for the count of on-hold tickets in one sub-queue, grouped by my staff on/after a certain date.
I've got this so far, which returns wildly incorrect numbers, almost as if its not taking into account the ticket creation date:
Ticket count per staff, on-hold in one department
I've got this so far, which returns wildly incorrect numbers, almost as if its not taking into account the ticket creation date:
Code:
SELECT Count(*) as TicketCount FROM 'Ticket Audit Logs', 'Staff' WHERE 'Ticket Audit Logs.Creation Date' >= mktime(0,0,0,11,19,2015) AND 'Staff.StaffGroupID' IN ('Staff', 'Administrator', 'Staff + KB', 'Remote') AND 'Tickets.DepartmentID' =...