查jx_score表的平均值,以哪次考试(testid)和科目分组(courseid)
select
testid,
courseid,
round(avg(`jx_score`.`score`),2) AS `average`
from `jx_score`
group by `jx_score`.`testid`,`jx_score`.`courseid`