SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype
Find the average weight for each pet type.
SELECT avg ( weight ) , pettype FROM pets GROUP BY pettype
select avg ( weight ) , pettype from pets group by pettype
Find the average weight for each pet type .