SQL 查询每个班的男女生人数,平均分 代码

2024-11-24 09:31:53
推荐回答(1个)
回答1:

select sex,count(studentid) from student group by sex

select avg(grade) from student left outer join grade on student.studentid=grade.student_id