- 博客(2)
- 收藏
- 关注
原创 25 条常见sql
select s.stu_id,s.stu_name from score inner join course c2 on score.course_id = c2.course_id inner join student s on score.stu_id = s.stu_id group by stu_id having sum(if(c2.course_name='语文',1,0))=1 and count(*)=3;#### 22 查询平均成绩大于85的所有学生的学号、姓名和平均成绩。
2023-05-09 16:30:23
70
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人