Conte animais de estimação Os tipos de animais de estimação em uma coluna

SELECT distributor_id, COUNT(*)

GROUP BY distributor_id'
Clear Chinchilla