If I have a table with a status field and I want to know how many records of each status I can do a simple group by. And how about if I want to know the count for 2 records and the count for all the others.
In other words I want this:
Status Count
-------- -----
Success X
Running Y
Failure Z
but Failure is not Failure on the table, it contains the actual error message, so I want everything that’s different that Success and Running
1 Answer