MySQL Select Count Group

MySQL command to count the number of entries for a group

SELECT field_to_count, count(id) FROM <i>table_name</i> group by field_to_count

Add new comment