MySQL
I have the following query
"SELECT Status, COUNT( ticket_id) AS total FROM tickets GROUP BY Status"
Which returns
Status ¦ Total
0 ¦ 3
2 ¦ 1
3 ¦ 6
Is it possible to change the result to a pharse, for example if
0 = Open, 1 = Hold, 2 = Awaiting End User Response, 3 = Resolved, 4 = Closed.
So then the result of the query would be
Status ¦ Total
Open ¦ 3
Awaiting end user ¦ 1
Resolved ¦ 6
Any help would be awesome, Cheers!