1 查询选修课程‘3-105’且成绩在60-80之间的所有记录
2 查询成绩为85、56、88的记录
3 查询最低分大于70,且最高分小于90的学号列
有四张表:Student 学生表 ,Course 课程表 ,SC成绩表 ,Teacher 教师表,求SQL语句
答案:1 悬赏:80 手机版
解决时间 2021-03-04 05:23
- 提问者网友:风月客
- 2021-03-03 12:17
最佳答案
- 五星知识达人网友:往事隔山水
- 2021-03-03 13:46
1. select * from Couse as c, SC as sc where (c.id is between 3 and 105) and (sc.score is between 60 and 80);
2. select * from SC as sc where sc.score = '85' and sc.score='56' and sc.score='88';
3. select stu.id from Student as stu, SC as sc where (sc.score=(select min(sc.score) from sc))>'70';
2. select * from SC as sc where sc.score = '85' and sc.score='56' and sc.score='88';
3. select stu.id from Student as stu, SC as sc where (sc.score=(select min(sc.score) from sc))>'70';
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯