Good day.
Database: MySQL
Table:
name (varchar 200)
status (enum 'open','close','pause')
For get count all name
with all status me need use 4 query:
SELECT count(*) FROM TABLE //count all names
SELECT count(*) FROM TABLE where status = open //count names where status = open
SELECT count(*) FROM TABLE where status = close //count names where status = close
SELECT count(*) FROM TABLE where status = pause //count names where status = pause
Anyone know how get all counts in one sql query and really it?