数据库题:有一张学生成绩表student_score(studentID、subjectID、score),请找出2门及以上不及格学生
答案:2 悬赏:40 手机版
解决时间 2021-03-07 03:00
- 提问者网友:星軌
- 2021-03-06 12:03
数据库题:现有一张学生成绩表student_score(studentID、subjectID、score),请找出2门及以上成绩不及格的学生编号。请问这道题目可以只用sql查询语句完成吗??如果只能用sql语句要怎么做?
最佳答案
- 五星知识达人网友:举杯邀酒敬孤独
- 2021-03-06 13:41
你好!
select studentid from student_score where score<60 group by studentid having count(*)>=2
我的回答你还满意吗~~
select studentid from student_score where score<60 group by studentid having count(*)>=2
我的回答你还满意吗~~
全部回答
- 1楼网友:低音帝王
- 2021-03-06 15:04
select * from student_score where score<60 group by studentID having count(studentID)>=2
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯