Použijte COUNT() což je agregační funkce, a seskupit je podle jejich status
SELECT status, COUNT(*) totalCount
FROM tableName
GROUP BY status
OSTATNÍ
Použijte COUNT() což je agregační funkce, a seskupit je podle jejich status
SELECT status, COUNT(*) totalCount
FROM tableName
GROUP BY status
OSTATNÍ