题目内容 (请给出正确答案)
[主观题]

数据库中有学生表Student(Sno,Sname,Ssex,Sage,Sdept),各属性分别表示为学号,姓名,性别,年龄,所

数据库中有学生表Student(Sno,Sname,Ssex,Sage,Sdept),各属性分别表示为学号,姓名,性别,年龄,所在系;学生选课表SC(Sno,Cno,Grade),各属性分别表示为学号,课程号以及成绩;课程表 Course(Cno,Cname,Cpno,Ccredit),各属性为课程号.课程名,先行课,学分。(先行课的意思是,比如课程号1有先行课5,说明要选课程1,就必须先选课程5) 。用以上各表完成查询选修了全部课程的学生姓名的语句补充:

SELETE Sname

FROM

5.

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“数据库中有学生表Student(Sno,Sname,Ssex…”相关的问题

第1题

用SQL语句创建简单数据表 设教学管理数据库中有多张数据表,其中学生表Student包括学生编号Sn

用SQL语句创建简单数据表

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

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

Ssex为位型。Sno是主键。

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

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

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

点击查看答案

第2题

在学生选课数据库中有学生表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

点击查看答案

第3题

在学生选课数据库中有学生表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

点击查看答案

第4题

在学生选课数据库中有学生表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

点击查看答案

第5题

8、在学生选课数据库中有学生表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

点击查看答案

第6题

在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下()SQL语句可以实现查询“CS”系并且年龄超过20岁的学生姓名。

A.select sname from student where sdept=’CS‘ except select sname from student where sage<=20

B.select sname from student where sdept=’CS‘ intersect select sname from student where sage>20

C.select sname from student where sdept=’CS‘ and sage>20

D.select sname from student where sdept=’CS‘ union select sname from student where sage>20

点击查看答案

第7题

在学生选课数据库中有学生表student(sno,sname,ssex,sage,sdept),课程表course(cno,cname)及学生选课表sc(sno,cno,grade),其中sno是学号,sname是姓名,ssex是性别,sage是年龄,sdept是系别,cno是课程号,cname是课程名,grade是成绩。以下()SQL语句可以实现查询“CS”系并且年龄超过20岁的学生姓名。

A.select sname from student where sdept=’CS‘ and sage>20

B.select sname from student where sdept=’CS‘ intersect select sname from student where sage>20

C.select sname from student where sdept=’CS‘ except select sname from student where sage<=20

D.select sname from student where sdept=’CS‘ union select sname from student where sage>20

点击查看答案
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

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

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信