• 2022-06-04
    假设有三个基本表:学生表S、课程表C、学生选课表SC,它们的结构如下:S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE)检索选修课程”C2”的学生中成绩最高的学生的学号。正确的SELECT语句是( )。
    A: SELECT S
    B: FROM SC WHERE C
    C: =”C2” AND GRADE>=(SELECT GRADE FROM SC WHERE C
    D: = “C2”)
    E: SELECT S
    F: FROM SC WHERE C
    G: =”C2” AND GRADE IN (SELECT GRADE FROM SC WHERE C
    H: = “C2”)
    I: SELECT S
    J: FROM SC WHERE C
    K: =”C2” AND GRADE NOT IN (SELECT GRADE FROM SC WHERE C
    L: = “C2”)
    M: SELECT S
    N: FROM SC WHERE C
    O: =”C2” AND GRADE>=ALL (SELECT GRADE FROM SC WHERE C
    P: = “C2”)
  • 举一反三