摘要:
-- 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 阅读全文
摘要:
存在有3张表,具体字段信息如下: 学生表(exam_t_student):学生id(student_id), 学生姓名(student_name), 班级id(class_id), 性别(gender) 班级表(exam_t_class):班级id(class_id), 年级(level) 成绩表( 阅读全文
摘要:
阅读全文