• 2022-05-30
    查询选修了课程号为‘C2’的学生号和姓名,若用下列SQL的SELECT语句表达时, 是错误的?
    A: SELECT S.S
    B: ,SNAME FROM S WHERE S
    C: = (SELECT SS
    D: FROM SC WHERE C
    E: =‘C2’)
    F: SELECT S.S
    G: ,SNAME FROM S,SC WHERE S
    H: = SS
    I: AND C
    J: =‘C2’
    K: SELECT S.S
    L: ,SNAME FROM S,SC WHERE S
    M: = SS
    N: AND C
    O: =‘C2' ORDER BY S
    P:
    Q: SELECT S.S
    R: ,SNAME FROM S WHERE S
    S: IN(SELECT SS
    T: FROM SC WHERE C
    U: =‘C2' )
  • 举一反三