Does anyone know if this is possible:
I'm running a query against a db and am pulling name, ticket #, group, etc (for a helpdesk)...
What I'd like to do is take the results from the "Name" field, but only show EACH NAME ONCE in a table. For example, I might get 200 results back, but only want to show the name of the person once, with how many tickets they have assigned to them.
This is what my query looks like now:
$query = "SELECT Create_Date, Request_Type, Assignee_Group, Assignee_Individual, Status, Request_Task_ID FROM Request_Task WHERE (Status='Active' OR Status='Assigned' OR Status='Acknowledged' OR Status='Held' OR Status='Pending' OR Status='Pending Cancellation' OR Status='WIP') AND (Assignee_Group='Security')";
So I would want to isolate "Assignee_Individual" and I guess count how many of each type of ticket that person had. And the table would look like:
___NAME___|___Assigned___|___Acknowledged___|___Held___|___Pending___|___WIP___
Mark 5 6 11 3 5
It seems like it would only need to COUNT the number of each type of ticket assigned to each associate. Does anyone know to start tackling this project?