摘要: -- test1SELECTs1.class_id as '班级id',sum(case gender when 'M' then s1.socre else 0 end )/sum(case gender when 'M' then 1 else 0 end ) as '男生平均分',sum(ca 阅读全文
posted @ 2019-08-21 11:48 elmi 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 存在有3张表,具体字段信息如下: 学生表(exam_t_student):学生id(student_id), 学生姓名(student_name), 班级id(class_id), 性别(gender) 班级表(exam_t_class):班级id(class_id), 年级(level) 成绩表( 阅读全文
posted @ 2019-08-21 11:40 elmi 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-21 11:10 elmi 阅读(396) 评论(0) 推荐(0) 编辑