sql语句的问题,不同出版社的平均评分怎么写

img


sql语句的问题,mysql5.7.我想要找到不同出版社的平均评分怎么写

可以采用分组查询,具体查询语句,我博客里面有。

select publisher,avg(price) fromgroup by publisher

根据出版社分组,然后再avg