请写出SQL语句:在student 表中查询选修‘23010’或‘23020’课程的学生信息?

陈世迩

写一个SQL语句,查询选修了5门课程的学生学号和姓名

请写出SQL语句:在student 表中查询选修‘23010’或‘23020’课程的学生信息?

select s.学号,s.姓名 from Student s, Sc where s.学号=Sc.学号 group by s.学号,s.姓名 having count(sc.课程编号)=5; 这一个是正确的,其他的是错误的!

数据库SQL语句中 查询选修了全部课程的学生的学号和姓名 理解

一个学生选择了全部的课程=不存在一个课程他没有选择 从句select * from course where not exists (select * from sc where sno= student.sno and cno= courseo)如果无法理解 换成 select * from course where cno not in (select cno from sc where sno= student.sno) 这是找出student的某个学生没有选择的课程

从学生选课数据库中查询选修“数据库原理”课并且成绩在90分以.

select * from Student where Student.SNo in( select SC.sno from StudentCourse SC where SCo=(select cno from Course where CName='数据库原理') and Score>90) select SClass 班级,count(sno) 不及格人数 from Student where exists(select * from StudentCourse SC where SC.Score<60 group by SC.SNo) group by SClass

用SQL语句查询每个学生选修的课程名及其成绩?

select 姓名,课程名,成绩 from (课程名所在的表名 C join 成绩所在的表名 S on C.课程号=S.课程号) join 学生信息表 on S.学号=学生信息表.学号 ; 具体的例子:select Sname,Cname,Grade from Student st left join(Score s left join Course c on s.Cno=c.Cno) on st.Sno=s.Sno;

SQL数据库中查询选修了所有课程的学生的学号和姓名及选修.

所有离开了数据结构(表结构)的SQL语句都是白搭!先假设数据结构为 学生表(学号 主键或设有唯一索引,姓名,性别) 课程表(课程号 主键或设有唯一索引,课程名) 选课表(课程号,学号)-- 字段“课程号”和“学号"设有双字段唯一索引 查询出选修了所有课程的学生的学号、姓名和选修门数:select a.学号,b.姓名,at as 选修门数 from (select 学号,count(1) as as cnt from 选课表 group by 学号 having count(1)=(select count(1) from 课程表)) a,学生表 b where a.学号=b.学号;

从学生表、选课表、课程表,试用SQL语句表示下列查询语句: (1)列出全部.

1.SELECT *FROM 学生表2.SELECT 学号, 姓名FROM 学生表WHERE 专业 = '软件测试专业'3.SELECT 课程号FROM 课程表WHERE 类型 = '必修课'

怎么用sql语句查询一个学生的选课情况,并列出课程信息

select stu.name,course.* from stu,course,chice where stu.sid=chice.sid and course.c_id=choice.c_id and stu.name='张三' --这个地方输入你想查的人名,如果这句不写则查询全部

用sql语句查询选修了3门及以上课程的学生学号,姓名,选修的课.

没人回答你啊:( SELECT S.SNo ,S.NAME ,SC.Num AS [选修课程数] FROM Student S JOIN (--查询选修3门以上的学生 SELECT SNo ,COUNT(*) AS Num FROM SC GROUP BY SNo -- 按学生分组 HAVING COUNT(*) >= 3 -- 超过3门 ) SC ON SC.SNo = S.No

用SQL语言写出:查询至少选了学生200215122选修的全部课程的学生号码.

select sno from s,sc,c where s.sno=sc.sno and co=sco and cname='db'select top 1 sno from sc order by grade descselect count(cno) ,cno from sc where grade>90 group by cno手写未验证 请自己验证

用SQL语句实现查询选修了一门以上课程学生的所有信息. 怎么.

select * from 学生表 where 学号 in (select distinct 学号 from 选课表)