检索不及格学生的学号、姓名和课程号、课程名称.写SQL语句。

2024-12-18 15:15:27
推荐回答(3个)
回答1:

SELECT A.SID AS 学号,A.NAME AS 姓名,B.CNO AS 课程号,B.COURSE AS 课程名称
FROM U_STUDENTS A ,U_COURSES B,U_SCORES C WHERE A.SID =C.STUDENT_ID AND B.CNO =C.COURSE_ID AND C.SCORE<60

回答2:

select student.sno,sname,course.cname,sc.grade from student join sc on
student.sno=sc.sno join course on course.cno=sc.cno where grade<60

回答3:


where条件后面加group by 选课.学号,姓名