select 平均分=avg(分数),平均对比=avg(对比) from 表名
where 序号 in (1,2,3)
或
where 序号 in (1,3)
或
where 序号 in (1,3,4,8,17)
等等
按自己的需要统计指定序号的行
如果序号取连续值还可以:
where 序号<5
或
where 序号 between 5 and 10
或
where 序号 not btrween 5 and 17
总之要灵活运用 not,in,between,以及各数学运算符等。
另外,必要时用上group by 和 having 子句分组统计和过滤。