网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

语句“USE master GO SELECT * FROM sysfiles GO”包括()个批处理。

  • A、1
  • B、2
  • C、3
  • D、4

参考答案

更多 “语句“USE master GO SELECT * FROM sysfiles GO”包括()个批处理。A、1B、2C、3D、4” 相关考题
考题 若要求“查询选修了3门以上课程的学生的学生号”,正确的SQL语句是A.SELECT S# FROM SC GROUP BY S# WHERE COUNT(*) 3B.SELECT S# FROM SC GROUP BY S# HAVING COUNT(*) 3C.SELECT S# FROM SC ORDER BY S# WHERE COUNT(*) 3D.SELECT S# FROM SC ORDER BY S# HAVING COUNT(*) 3

考题 查询选修了课程号为\'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' )

考题 SQL语句:SELECT*FROM班级WHERE班级号NOT IN;(SELECT班级号FROM学生)该语句等价于:SELECT*FROM班级WHERE NOT______;(SELECT*FROM学生WHERE班级号=班级.班级号)

考题 若要求查找‘李’姓学生的学生号和姓名,正确的SQL语句是A.SELECT S#,SNAME FROM S WHERE SNAME='李%.'B.SELECT S#,SNAME FROM S WHERE SNAME LIKE '李%.'C.SELECT S#,SNAME FROM S WHERE SNAME='%.李%.'D.SELECT S#,SNAME FROM S WHERE SNAME LIKE '%.李%.'

考题 有如下的SQL语句: Ⅰ. SELECT sname FROM s, sc WHERE grade60 Ⅱ. SELECT sname FROM s WHERE sno IN(SELECT sno FROM sc WHERE grade60) Ⅲ. SELECT sname FROM s, sc WHERE s.sno=sc.sno AND grade60 若要查找分数(grade)不及格的学生姓名(sname),以上正确的有哪些?( )。A.Ⅰ和ⅡB.Ⅰ和ⅢC.Ⅱ和ⅢD.Ⅰ、Ⅱ和Ⅲ

考题 检索所有比“王华”年龄大的学生的姓名、年龄和性别,正确的SELECT语句是______。A.SELECT SN,AGE,SEX FROM S SHERE AGE>(SELECT AGE FROM S WHERE SN='王华')B.SELECT SN,AGE,SEX FROM S WHERE SN='王华'C.SELECT SN,ACE,SEX FROM S WHERE AGE>(SELECT ACE WHERE SN='王华')D.SELECT SN,ACE,SEX FROM S WHERE ACE>王华 AGE

考题 实现“从学生信息表中找出性别为女的学生姓名”的SQL语句是A.SELECT*FROMsB.SELECT*FROM s WHERE sex='女'C.SELECT sname FROM s WHERE sex='女'D.SELECT*FROM s WHERE grade="

考题 对于教学数据库的三个基本表:S(Sno,Sname,Ssex),SC(Sno,Cno,Grade),C(Cno,Cname, Teacher),其中S为学生表,SC为学生选课表,C为课程表,则对于语句:检索至少选修LIU老师所授课课程中一门课程的女生姓名,SQL语句错误的是______。A.SELECT Sname FROM S,SC,C WHERE S.Sno=SC.Sno AND SC.Cno=C.Cno AND Teacher=‘LIU’AND Ssex=‘F’B.SELECT Sname FROM S WHERE Ssex=‘F’AND Sno IN (SELECT Sno FROM SC WHERE Cno IN(SELECT Cno FROM C WHERE Teacher=‘LIU’))C.SELECT Sname FROM S WHERE Ssex=‘F’AND EXISTS (SELECT* FROM SC WHERE SC.Sno=S.Sno AND EXISTS (SELECT*D.SELECT Sname FROM S WHERE Ssex=‘F’AND EXISTS(SELECT* FROM SC WHERE SC.Sno=S.Sno AND EXISTS (SELECT*

考题 已知基本表SC(S#,C#,GRADE),则“统计选修了课程的学生人次数”的SQL语句为( )。A.SELECT COUNT(DISTINCTS#)/FROM SCB.SELECT COUNT(S#)/FROM SCC.SELECTCOUNT(*)/FROM SCD.SELECT COUNT (DISTINCT*)/FROM SC

考题 查询选修了课程号为“MATHS”的学生的姓名和年龄,若用下列SQL的SELECT语句表达时,错误的是( )。A) SELECT SNAME,AGE FROM S WHERE S. S# =(SELECT SC. S# FROM SC WHEREc.c# ='MATHS ')B ) SELECT SNAME, AGE FROM S WHERE S. S# =(SELECT SC. S# FROM SC WHERESC. C# =' MATHS ')C) SELECT SNAME, AGE FROM S, SC WHERE S. S# =SC. S# AND SC. C# ='MATHS'ORDER BY S. S#D)SELECT SNAME, AGE FROM S, SC WHERE S. S# =SC. S# AND SC. C# ='MATHS'

考题 设有 S ( 学号,姓名,性别 ) 和 SC ( 学号,课程号,成绩 ) 两个表,如下 SQL 语句检索选修的每门课程的成绩都高于或等于 85 分的学生的学号、姓名和性别,正确的是A)SELECT 学号 , 姓名 , 性别 FROM s WHERE EXISTS(SELECT * FROM sc WHERE SC. 学号 = S . 学号 AND 成绩 =85)B)SELECT 学号 , 姓名 , 性别 FROM s WHERE NOT EXISTS(SELECT * FROM sc WHERE SC. 学号 = S . 学号 AND 成绩 =85)C)SELECT 学号 , 姓名 , 性别 FRO M s WHERE EXISTS(SELECT * FROM sc WHERE SC. 学号 =S. 学号 AND 成绩 85)D)SELECT 学号 , 姓名 , 性别 FROM s WHERE NOT EXISTS(SELECT * FROM sc WHERE SC. 学号 =S. 学号 AND 成绩 85)

考题 ( 3 2 )查询学生姓名及其所选修课程的课程号和成绩,正确的 SQL 语句是A ) SELECT S . SNAME , SC.C# , GRADE FROM S WHERE S . S # = SC . S#B ) SELECT S . SNAME , SC.C #, GRADE FROM SC WHERE S . S # = = SC . S#C ) SELECT S . SNAME , SC.C# , GRADE FROM S , SC WHERE S . S# = SC . S#D ) SELECT S . SNAME , SC.C# , GRADE FROM S , SC WHERE S .S# = SC . C#

考题 设有关系R(A,B,C)和S(C,D),与关系代数表达式ΠA,B,D(σR,C=S.C(R×S))等价的SQL语句是______。A.SELECT*FROMR,S WHERE R.C=S.CB.SELECT A,B,D FROM R,S WHERE R.C=S.CC.SELECT A,B,D FROM R,S WHERE R=SD.SELECT A,B FROM R WHERE(SELECT D FROM S WHERE R.C=S.

考题 查询选修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’)

考题 设有关系R(A,B,C) 和S(C,D) 与关系代数表达式πA,B,D(σR,C=s.c(R×S))等价的SQL语句是A.SELECT*FROM R,SWHERE R.C=S.CB.SELECT A,B,D FROM R,S WHERE R.C=S.CC.SELECT A,B,D FROM R,S WHERE R=SD. SELECT A,B FROM R WHERE (SELECT D FROM S WHERE R.C= S.C)

考题 若要求查找姓名中第一个字为“刘”的学生号和姓名。下面列出的SQL语句中,正确的是( )。A.SELECT S#,SNAME FROM S WHERE SNAME='刘%.'B.SELECT S#,SNAME FROM S WHERE SNAME='刘_'C.SELECT S#,SNAME FROM S WHERE SNAME LIKE'刘%.'D.SELECT S#,SNAME FROM S WHERE SNAME LIKE'刘_'

考题 “找出北京供应商的所有信息”的SELECT语句是A.SELECT*FROM S WHERE CITY='京'B.SELECT SNO,SNAME FROM S WHERE CITY='北京'C.SELECT*FROM S WHERE CITY=北京D.SELECT SNO,SNAME FROM S WHERE CITY=北京

考题 “找出北京供应商的所有信息”的SELECT语句是A.SELECT*FROM S WHERE CITY=‘北京’B.SELECTSNO,SNAME FROM S WHERE CITY=‘北京’C.SELECT*FROM S WHERE CITY=北京D.SELECT SNO,SNAME FROM S WHERE CITY=北京

考题 设有关系R(A,B,C)和S(C,D)。与关系代数表达式πA,B,D(σR.C=S.C(R×S)等价的SQL语句是A.SELECT*FROM R,S WHERE R.C=S.CB.SELECT A,B,D FROM R,S WHERE R.C=S.CC.SELE4T 1,2,8 FROM R,S WHERE R=SD.SELECT A,B FROM R WHERE(SELECT D FROM S WHERE R.C=S.

考题 查询选修了课程号为\'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\')

考题 语句“USE master GO SELECT * FROM sysfiles GO”包括()个批处理。A.1B.2C.3D.4

考题 检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是______。A.SELECT S.SN,SC.C#,SC.GRADE FROM S WHERE S.S#=SC.S#B.SELECT S.SN,SC.C#,SC.GRADE FROM SC WHERE S.S#=SC.GRADEC.SELECT S.SN, SC.C#,SC.GRADE FROM S,SC WHERE S.S#=SC.S#D.SELECT S.SN,SC.C#,SC.GRADE FROM S,SC

考题 查询选修了课程号为'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')

考题 SQL语句:SELECT木FROM班级WHERE班级号NOT IN;(SELECT班级号FROM学生)该语句等价于:SELECT﹡FROM班级WHERE NOT__________;(SELECT木FROM学生WHERE班级号=班级.班级号)

考题 在SQL语句中要查询表s在AGE字段上取空值的记录,正确的SQL语句为:SELECT * FROM s WHERE ()。

考题 单选题语句“USE master GO SELECT * FROM sysfiles GO”包括()个批处理。A 1B 2C 3D 4