Let\'s say I have a table with the following values.
Ford Ford Ford Honda Chevy Honda Honda Chevy
So I want to construct the following outp
Hope this works for you!!
SELECT car_brand, COUNT(id) from cars GROUP BY car_brand
COUNT(id) with InnoDB is faster than COUNT(*) because InnoDB doesn't cache the row count.