• 2022-06-04
    学生表S、课程表C和学生选课表SC,它们的结构如下: S(S#,SN,SEX,AGE,DEPT)C(C#,CN)SC(S#,C#,GRADE) 其中,S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。查询选修课程“C2”的学生中成绩最高的学生的学号。正确的SELECT语句是
    A: SELECT S
    B: FROM SCWHERE C
    C: =“C2” AND GRADE >= (SELECT GRADE FROM SCWHERE C
    D: =“C2”)
    E: SELECT S
    F: FROM SCWHERE C
    G: =“C2” AND GRADE IN (SELECT MAX(GRADE) FROM SCWHERE C
    H: =“C2”)
    I: SELECT S
    J: FROM SCWHERE C
    K: =“C2” AND GRADE IN (SELECT GRADE FROM SCWHERE C
    L: =“C2”)
    M: SELECT S
    N: FROM SCWHERE C
    O: =“C2” AND GRADE > ALL (SELECT GRADE FROM SCWHERE C
    P: =“C2”)
  • 举一反三