搜题
网友您好,请在下方输入框内输入要搜索的题目:
搜题
题目内容 (请给出正确答案)
提问人:网友casepk 发布时间:2022-01-06
[主观题]

某数据库中有表COURSE(CNO,CNAME,TNO)和表TEACHER(TNO,TNAME,DE- PART),完成查询选修某课程

某数据库中有表COURSE(CNO,CNAME,TNO)和表TEACHER(TNO,TNAME,DE- PART),完成查询选修某课程的同学人数多于5人的教师姓名。

SELECT TNAME

FROM TEACHER WHERE

(4)

(SELECT X.TNO FROM COURSE X,COURSE Y

WHERE (5)

(6)

(7)

)

简答题官方参考答案 (由简答题聘请的专业题库老师提供的解答)
查看官方参考答案
更多“某数据库中有表COURSE(CNO,CNAME,TNO)和表TEACHER(TNO,TNAME,DE- PART),完成查询选修某课程”相关的问题
第1题
现有studentinfo数据库,该数据库中有以下表: 表course,字段有cno()

点击查看答案
第2题
在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生

在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。查询至少选修了“201815005”同学所选课程的学生的姓名,可以使用如下SQL语句。 select sname from student s where sno<>‘201815005’ and not exists (select * from sc x where x.sno=’201815005’ and not exists (select * from sc y where y.cno=x.cno and y.sno=s.sno ) )

点击查看答案
第3题
在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生

在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。要查询选修了“Java程序设计”课的的学生姓名,则SQL语句是: select sname from student,sc ,course where 子句。 这里的where子句的内容是()。

A、student.sno=sc.sno and sc.cno=course.cno and cname=’Java程序设计’

B、cname=’Java程序设计’

C、student.sno=sc.sno and cname=’Java程序设计’

D、sc.cno=course.cno and cname=’Java程序设计’

点击查看答案
第4题
在学生选课数据库S_T中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname,cpn

在学生选课数据库S_T中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname,cpno,ccredit)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,cpno是先行课号,ccredit是学分,grade是成绩。以下()SQL语句可以实现查询没有选修’1’号课程的学生姓名。

A、select sname from student where not exists (select * from sc where student.sno=sc.sno and cno=’1’)

B、select sname from student, sc where student.sno=sc.sno and cno !=’1’

C、select sname from student where sno not in (select sno from sc where cno=’1’)

D、select sname from student where exists (select * from sc where student.sno=sc.sno and cno<>’1’)

点击查看答案
第5题
用SQL语句创建简单数据表 设教学管理数据库中有多张数据表,其中学生表Student包括学生编号Sn

用SQL语句创建简单数据表

设教学管理数据库中有多张数据表,其中学生表Student包括学生编号Sno,学生姓名

Sname,学生年龄Sage,学生性别Ssex字段;Sno和Sname为字符型(长度20), Sage为整型,

Ssex为位型。Sno是主键。

课程表Course包括课程编号Cno,课程名Cname,授课教师Teacher字段;三个字段均为

字符型(长度20) , Cno是主键。

请用SQL语句创建上面的两张数据表。

点击查看答案
第6题
在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下哪条语句可以实现查询选了课的学生人数()。

A.select count(*) from sc

B.select count(sno) from sc

C.select count(distinct sno) from sc

D.select count(cno) from sc

点击查看答案
第7题
在学生选课数据库S_T中,有学生表student(sno,sname,ssex,sage,sdept),sno是主键;课程表course(cno,cname,cpno,credit),cno是主键;学生选课表sc(sno,cno,grade),主键是sno+cno。sc表的外键sno参照student表的主键sno,sc表的外键cno参照course表的主键cno。以下()操作可能会违背参照完整性约束。

A.删除student表中的记录

B.修改student表中某条记录的sno值

C.向sc表中插入一条记录

D.修改sc表中某条记录的sno值

点击查看答案
第8题
在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下()SQL语句可以实现查询选修了'C002'号课程的学生姓名。

A、select sname from student, sc where student.sno=sc.sno and cno='C002'

B、select sname from student where sno = (select sno from sc where cno='C002')

C、select sname from student where exixts (select * from sc where student.sno=sc.sno and cno='C002')

D、select sname from student where sno in (select sno from sc where cno='C002')

点击查看答案
第9题
在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade), 其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。 以下()SQL语句可以实现查询没有选修'C002'号课程的学生姓名。

A、select sname from student where sno not in (select sno from sc where cno='C002')

B、select sname from student, sc where student.sno=sc.sno and cno !='C002'

C、select sname from student where exixts (select * from sc where student.sno=sc.sno and cno<>'C002')

D、select sname from student where not exixts (select * from sc where student.sno=sc.sno and cno='C002')

点击查看答案
重要提示: 请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案
购买前请仔细阅读《购买须知》
请选择支付方式
微信支付
支付宝支付
点击支付即表示你同意并接受《服务协议》《购买须知》
立即支付
搜题卡使用说明

1. 搜题次数扣减规则:

功能 扣减规则
基础费
(查看答案)
加收费
(AI功能)
文字搜题、查看答案 1/每题 0/每次
语音搜题、查看答案 1/每题 2/每次
单题拍照识别、查看答案 1/每题 2/每次
整页拍照识别、查看答案 1/每题 5/每次

备注:网站、APP、小程序均支持文字搜题、查看答案;语音搜题、单题拍照识别、整页拍照识别仅APP、小程序支持。

2. 使用语音搜索、拍照搜索等AI功能需安装APP(或打开微信小程序)。

3. 搜题卡过期将作废,不支持退款,请在有效期内使用完毕。

请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

- 微信扫码关注简答题 -
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
- 微信扫码关注简答题 -
请用微信扫码测试
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

简答题
下载APP
关注公众号
TOP