执行SQL语句: SELECT student.sno,sname,cno,grade FROM student,sc WHERE sex=′女′ and student.sno=sc.sno 则该语句对student和sc执行的操作有 查找学生姓名及其

admin2010-07-20  21

问题 执行SQL语句:
SELECT student.sno,sname,cno,grade FROM student,sc
WHERE sex=′女′ and student.sno=sc.sno
则该语句对student和sc执行的操作有
查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是

选项 A、SELECT sname FROM student,SELECT cno,grade FROM sc
WHERE student.sno=sc.sno
B、SELECT sname,cno,grade FROM student,course
WHERE student.sno=course.cno
C、SELECT sname,cname,grade FROM student,course,sc
WHERE student.sno=sc.sno and sc.cno=course,cno
D、SELECT sname,cno,grade FROM student,sc
WHERE student.sno=sc.sno

答案D

解析 题意中要求查找学生姓名、课程号和成绩,这三个属性可以查找两个关系表student和sc,通过条件student.so=sc.so进行连接。
转载请注明原文地址:https://jikaoti.com/ti/Rq97FFFM
0

相关试题推荐
最新回复(0)