查询选修了课程号为\'C2\'的学生号和姓名,若用下列SQL的SELECT语句表达时,哪一个是错误的?A.SELECT S.S#,SNAME FROM S WHERE S.S#= (SELECT SC.S# FROM SC WHERE C# = 'C2' )B.SELECT S.S#,SNAME FROM S,SCWHERE S.S# = SC.S# AND C# = 'C2'C.SELECT S.S#,SNAME FROM S,SCWHERE S.S# = SC.S# AND C# = 'C2' ORDER BY S.S#D.SELECT S.S#,SNAME FROM S WHERE S.S#IN (SELECT SC.S# FROM SC WHERE C# ='C2' )

查询选修了课程号为\'C2\'的学生号和姓名,若用下列SQL的SELECT语句表达时,哪一个是错误的?

A.SELECT S.S#,SNAME FROM S WHERE S.S#

= (SELECT SC.S# FROM SC WHERE C# = 'C2' )

B.SELECT S.S#,SNAME FROM S,SC

WHERE S.S# = SC.S# AND C# = 'C2'

C.SELECT S.S#,SNAME FROM S,SC

WHERE S.S# = SC.S# AND C# = 'C2' ORDER BY S.S#

D.SELECT S.S#,SNAME FROM S WHERE S.S#

IN (SELECT SC.S# FROM SC WHERE C# ='C2' )


相关考题:

查询选修了课程号为'C2'的学生号和姓名,若用下列SQL的SELECT语句表达时,哪一个是错误的?A.SELECT S.S#,SNAME FROM S WHERE S.S#=(SELECT SC.S# FROM SC WHERE C#=‘C2’)B.SELECT S.S#,SNAME FROM S,SCWHERE S.S#=SC.S#AND C#=‘C2’C.SELECT S.S#,SNAME FROM S,SCWHERE S. S#=SC.S#AND C#=‘C2’ORDER BY S.S#D.SELECT S.S#,SNAME FROM S WHERE S.S#IN (SELECT SC.S# FROM SC WHERE C#=‘C2’)

查询选修C2课程号的学生姓名,下列SQL语句中错误的是 ______。A.SELECT 姓名 FROM S WHERE EXISTS (SELECT*FROM SC WHERE 学号=S.学号 AND 课程号='C2')B.SELECT 姓名 FROM S WHERE 学号 IN (SELECT 学号 FROM SC WHERE 课程号='C2')C.SELECT 姓名 FROM S JOIN SC ON S.学号=SC.学号 WHERE 课程号='C2'D.SELECT 姓名 FROM S WHERE 学号= (SELECT 学号 FROM SC WHERE 课程号='C2')

查询选修C2课程号的学生姓名,下列SQL,语句中错误的是( )。A.SELECT姓名FROM S WHERE EXISTS (SELECT*FROM SC WHERE学号=S.学号AND 课程号=’C2’)B.SELECT姓名 FROM S WHERE学号IN (SELECT学号FROM SC WHERE课程号=’C2 ’)C.SELECT姓名FROM S JOIN SC ON S.学号=SC. 学号WHERE课程号=’C2’D.SELECT姓名FROM S WHERE学号= (SELECT学号FRM SC WHERE课程号=’C2’)

查询选修C2课程号的学生姓名,下列SQL语句中错误的是( )。A.SELECT姓名FRoM S WHERE EXISTS (SELECT*FROM SC WHERE学号=S.学号AND课程号=C2)B.SELECT姓名FROM S WHERE学号IN (SELECT学号FROM SC WHERE课程号=C2)C.SELECT姓名FROM S JOIN SC ON S.学号=SC.学号WHERE课程号=C2D.SELECT姓名FROM S WHERE学号= (SELECT学号FROM SC WHERE课程号=C2)

查询选修了课程号为\'C2\'的学生号和姓名,若用下列SQL的SELECT语句表达时,哪一个是错误的?______。A.SELECT S.S#,SNAME FROM S WHERE S.S#=(SELECT SC.S# FROM SC WHERE C#=\'C2\')B.SELECT S.S#,SNAME FROM S,SC WHERE S.S#=SC.S# AND C#=\'C2\'C.SELECT S.S#,SNAME FROM S,SC WHERE S.S#=SC.S# AND C#=\'C2\'ORDER BYS.S#D.SELECT S.S#,SNAME FROM S WHERE S.S# IN(SELECT SC.S# FROM SC WHERE C#=\'C2\')

查询选修了课程号为,C2,的学生号和姓名,若用下列SQL的SELECT语句表达时,错误的是( )。A.SELECT S.S#,SNAME FROM S WHERE S.S# =(SELECT SC.S# FROM SC WHERE C#='C2')B.SELECT S.S#,SNAME FROM S,SC WHERE S.S#=SC.S# AND C#='C2')C.SELECT S.S#,SNAME FROM S,SC WHERE S.S#=SC.S# AND C#='C2' ORDER BY S.S#D.SELECT S.S#,SNAME FROM S WHERE S.S IN (SELECT SC.S# FROM SC WHERE C ='C2')

查询选修了课程号为'C2'的学生号和姓名,若用下列SQL的SELECT语句表达时,错误的是( )。A.SELECT S.S#,SNAME FROM S WHERE S.S# =(SELECT S C.S# FROM SC WHERE C#='C2')B.SELECT S.S#,SNAME FROM S,SC WHERE S.S#==S C.S# AND C#='C2'C.SELECT S.S#,SNAME FROM S,SC WHERE S.S#=S C.S# AND C#='C2' ORDER BY S.S#D.SELECT S.S#,SNAME FROM S WHERE S.S IN (SELECT SC.S## FROM SC WHERE C#='C2')

查询选修了课程号为“C2”的学生号和姓名,若用下列SQL的SELECT语句表达时,哪一个是错误的?A.SELECT S.S#,SNAME FROM S WHERE S.S# (SELECT SC. S# FROM SC WHERE C#='C2')B.SELECT S.S#,SNAME FROMS,SC WHERE S.S#=SC.S# AND C#='C2'C.SELECT S.S#,SNAME FROM S,SC WHERE S.S=SC.S# AND C#='C2'ORDER BY S.S#.D.SELECTS.S#,SNAME FROM S WHERE S.S# IN(SELECT SC. S# FROM SC WHERE C#='C2')

查询选修 C2 课程号的学生姓名,下列 SQL 语句中错误是A)SELECT 姓名 FROM S WHERE EXISTS (SELECT * FROM SC WHERE 学号 =S. 学号 AND 课程号='C2')B)SELECT 姓名 FROM S WHERE 学号 IN (SELECT 学号 FROM SC WHERE 课程号 ='C2')C)SELECT 姓名 FROM S JOIN SC ON S. 学号 =SC. 学号 WHERE 课程号 ='C2'D)SELECT 姓名 FROM S WHERE 学号 = (SELECT 学号 FROM SC WHERE 课程号 ='C2')