I do not know how to do the following with the given script. I am trying to only list values that are > 1 but no clear understanding as to how. This script ask the question, How many times does a Ticket's status gets changed to Resolved and places that number in a field.
SELECT (COUNT (Status))
WHERE Status=? AND TicketID_fk=?
GROUP BY TicketID_fk"
;" - "; ""; "Resolved"; Service_Management::Ticket_ID )