select a.s_id from (select s_id,score from SC where C_ID='001') a,(select s_id,scorefrom SC where C_ID='002') b where a.score>b.score and a.s_id ...
select a.s id from select s id,score from SC where C ID a, select s id,scorefrom SC where C ID b where a.score gt b.score and a.s id b.s id .查询平均成绩大于 分的同学的学号和平均成绩 select S ID,avg score from sc group ...
2020-12-31 11:36 0 3954 推荐指数:
select a.s_id from (select s_id,score from SC where C_ID='001') a,(select s_id,scorefrom SC where C_ID='002') b where a.score>b.score and a.s_id ...
SQL经典50查询语句案例_1 前言:最近复习sql做这个的时候,发现sql查询其实还有很多内嵌方法,所以把做过的笔记记一下子,方便自己方便大家。 1、查询“001”课程比“002”课程成绩高的所有学生的学号: 在MySQL命令行中的运行情况: 总结:from + 多表命名 ...
1.查询“001”课程比“002”课程成绩高的所有学生的学号; 你要知道的知识点 代码如下 解析 ...
SQL经典50查询语句案例_8: 8、查询课程编号“002”的成绩比课程编号“001”课程低的所有同学的学号、姓名: 在MySQL命令行中的运行情况: 总结:本问题也是利用from+数据表命名然后运用and连接条件查询即可。 ...
1 查询每门课程成绩都大于80分学生的学号 数据库 表 studentname score courseA 85 语文A 75 数学A 82 英语B 75 语文B 89 数学B 79 英语天使美眉90 语文天使美眉100 数学天使美眉100 英语请找出每门课程都超过80分 ...
select S_ID,Sname from Student where S_ID not in (select S.S_ID from Student AS S,SC where S.S_ID=SC ...