单选题
MySQL数据程序设计
2016-02-04
若student 表中有一字段s_fenshu,数据类型为整型,保存每个学生的考试成绩,求全班平均分的正确做法是:
A.把每个学生的 s_fenshu 手工进行相加,然后除以全班人数,得到平均分
B.使用 select avg(s_fenshu) from student
C.使用 select sum(s_fenshu) from student / select count(*) from student
D.使用 select sum(s_fenshu) from student % select count(*) from student
参考答案
B
答案解析
暂无解析
你可能感兴趣的试题
A.select * from net_46 where s_name like ’#晓#’
B.select * from net_46 where s_name like ’&晓&’
C.select * from net_46 where s_name like ’$晓$’
D.select * from net_46 where s_name like ’%晓%’
A.获取第6条到第10条记录。
B.获取第5条到第10条记录。
C.获取第6条到第15条记录。
D.获取第5条到第15条记录。
A.select productid from orders where count(productid)>1
B.select productid from orders where max(productid)>1
C.select productid from orders where having count(productid)>1 group by productid
D.select productid from orders group by productid having count(productid)>1