检索选修课程号为“D3”的学生中成绩最高的学生的学号,正确的SELECT语句是( )

admin2017-10-26  25

问题 检索选修课程号为“D3”的学生中成绩最高的学生的学号,正确的SELECT语句是(     )

选项 A、SELECT S#
  FROM SC
     WHERE C # =’D3’AND GRADE> =
       (SELECT GRADE FROM SC
           WHERE C# =’D3’) ;
B、SELECT S#
  FROM SC
   WHERE C# =’D3’AND GRADE IN
         (SELECT GRADE FROM SC
             WHERE C# =’D3’) ;
C、SELECT S#
  FROM SC
   WHERE C# =’D3’AND GRADE NOT IN
     (SELECT GRADE FROM SC
        WHERE C# =’D3’) ;
D、SELECT S#
   FROM SC
     WHERE C # =’D3’AND GRADE> = ALL
       (SELECT GRADE FROM SC
           WHERE C# =’D3t) ;

答案D

解析
转载请注明原文地址:https://jikaoti.com/ti/cPdaFFFM
0

最新回复(0)