I need to find out all statuses in a table using group by:
SELECT status FROM table GROUP BY status
And then count the results found
Use below query:
SELECT status, count(id) as CNT FROM table GROUP BY status