SELECT cName,score FROM course,sc WHERE sc.cNo = course.cNo AND sNo = (SELECT sNo FROM student WHERE sName = '王兵');
时间: 2024-06-10 22:06:19 浏览: 207
学生课程成绩查询系统(C语言)
您想查询学生王兵所选的课程名和分数,正确的SQL语句应该是:
SELECT cName, score FROM course, sc
WHERE sc.cNo = course.cNo
AND sc.sNo = (SELECT sNo FROM student WHERE sName = '王兵');
阅读全文