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

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

设在某SELECT语句的WHERE子句中,需要对Grade列的空值进行处理。下列关于空值的操作,错误的是()。

  • A、Grade IS NOT NULL
  • B、Grade IS NULL
  • C、Grade = NULL
  • D、NOT (Grade IS NULL)

参考答案

更多 “设在某SELECT语句的WHERE子句中,需要对Grade列的空值进行处理。下列关于空值的操作,错误的是()。A、Grade IS NOT NULLB、Grade IS NULLC、Grade = NULLD、NOT (Grade IS NULL)” 相关考题
考题 关系SC(Sno,Cno,Grade)表示学号,课程号,成绩。现要查询平均分在90分以上的学生的学号和平均成绩,正确的语句是______。A.SELECT Sno,AVG(Grade) FROM SC WHERE AVG(Grade)>=90 GROUP BY SnoB.SELECT Sno,AVG(Grade) FROM SC GROUP BY Sno HAVING AVG(Grade)>=90C.SELECT Sno,AVG(Grade) FROM SC WHERE AVG(Grade)>=90 ORDER BY SnoD.SELECT Sno,AVG(Grade) FROM SC GROUP BY Cno HAVING AVG(Grade)>=90

考题 有如下的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.Ⅰ、Ⅱ和Ⅲ

考题 检索选修课程"C2”的学生中成绩最高的学生的学号,正确的SELECT语句是______。A.SELECT S# FORM. SC WHERE C#="C2"AND GRADE>=(SELECT GRADE FORM. SC WHERE C#="C2")B.SELECT S# FORM. SC WHERE C#="C2"AND GRADE IN(SELECT GRADE FORM. SC) WHERE C#="C2"C.SELECT S# FORM. SC WHERE C#="C2"AND GRADE NOT IN(SELECT GRADE FORM. SC WHERE C#="C2")D.SELECT S# FORM. SC WHERE C#="C2"AND GRADE>=ALL(SELECT GRADE FORM. SC WHERE C#="C2")

考题 已知关系模式:sc(sno, sname, grade),各属性含义依次为学号、课程名、分数。要查找“数据库”课分数最高的学生的学号,正确的SQL语句是A.SELECT sno FROM sc WHERE sname="数据库" AND grade=MAX(grade)B.SELECT sno FROM sc FOR sname="数据库" OR grade>=MAX(grade)C.SELECT sno FROM sc WHERE sname="数据库" AND grade=(SELECT MAX(grade) FROM scD.SELECT sno FROM sc FOR sname="数据库" OR grade=(SELECT MAX (grade) FROM sc

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

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

考题 基于学生.课程数据库中的三个基本表:学生信息表:s (snumber, sname, sex, age, dept)主码为snumber课程信息表:c(cnumber, cname,teacher)主码为cnumber学生选课信息表:sc(snumber, cnumber, grade)主码为(snumber, cnumber)“从学生选课信息表中找出无成绩的元组”的SQL语句是( )。A)SELECT ﹡FROM sc WHERE grade=NULLB)SELECT﹡FROM sc WHERE grade IS "C)SELECT﹡FROM sc WHERE grade IS NULLD)SELECT﹡FROM sc WHERE grade=''

考题 已知学生选课信息表:sc(sno,cno,grade)。查询“至少选修了一门课程,但没有学习成绩的学生学号和课程号”的SQL语句是A.SELECT sno,cno FROM sc WHERE grade=NULLB.SELECT sno,cno FROM sc WHERE grade IS‘’C.SELECT sno,cno FROM sc WHERE grade IS NULLD.SELECT sno,cno FROM sc WHERE grade=‘’

考题 “从学生选课信息表中找出无成绩的元组”的SQL语句是( )。 A.SELECT*FROM sc WHERE grade=NULL B.SELECT*FROM sc WHERE grade IS'' C.SELECT*FROM sc WHERE grade IS NULL D.SELECT*FROM sc WHERE grade=''

考题 查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是A.SELECT sname FROM student,SELECT cno,grade FROM sc WHERE student.sno=sc.snoB.SELECT sname,cno,grade FROM student,course WHERE student.sno=course.cnoC.SELECT sname,cname,grade FROM student,course,sc WHERE student.sno=sc.sno and sc.cno=course,cnoD.SELECT sname,cno,grade FROM student,sc WHERE student.sno=sc.sno

考题 下列SQL语句中可以正确查询教师表中“系别号”字段的值为空值的所有记录的是( )。A. SELECT*FROM教师WHERE系别号=‘ ’B. SELECT*FROM教师WHERE系别号=nullC. SELECT*FROM教师WHERE系别号is nullD. SELECT ISNULL(系别号)FROM教师

考题 对于数据表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是______。A.SELECT sno,sname FROM student WHERE gade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT mo,age FROM student WHERE grade=NULL

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

考题 检索选修课程“C2”的学生中成绩最高的学生的学号。正确的SELECT的语句是______。A.SELECT S# FROM SC WHERE C#="C2" AND GRADE> =(SELECT GRADE FROM SC WHERE C#="C2")B.SELECT S# FROM SC WHERE C#="C2" AND GRADE IN(SELECT GRADE FROM SC WHERE C#="C2")C.SELECT S# FROM SC WHERE C#="C2" AND GRADE NOT IN(SELECT GRADE FROM SC WHERE C#="C2")D.SELECT S# FROM SC WHERE C#="C2" AND GRADE> =ALL(SELECT GRADE FROM SC WHERE C#="C2")

考题 对于学生信息表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是A.SELECT sno,sname FROM student WHERE grade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT sno,age FROM student WHERE grade=NULL

考题 检索选修四门以上课程的学生总成绩(不统计不及格的课程),并要求按总成绩的降序排列出来。正确的SELECT语句是______。A.SELECT S#, SUM(GRADE) FROM SC WHERE GRADE>=60 GROUP BY S# ORDER BY 2 DESC HAVING COUNT(*)>=4B.SELECT S#, SUM(GRADE) FROM SC WHERE GRADE>=60 GROUP BY S# HAVING COUNT(*)>=4 ORDER BY 2 DESCC.SELECT S#, SUM(GRADE) FROM SC WHERE GRADE>=60 HAVING COUNT(*)>=4 GROUP BY S# ORDER BY 2 DESCD.SELECT S#, SUM(GRADE)FROM SC WHERE GRADE>=60 ORDER BY 2 DESC GROUP BY S# HAVING COUNT(*)>=4

考题 从学生选课信息表中找出无成绩的元组的SQL语句是( )。A.SELECT*FROM sc WHERE grade=NULLB.SELECT*FROM sc WHERE grade IS"C.SELECT*FROM sc WHERE grade IS NULLD.SELECT*FROM sc WHERE grade="

考题 在SELECT语句中,如果需要对分组处理后的结果再进行选择,可以使用WHERE子句。

考题 SELECT语句中的WHERE说明()。

考题 执行Sql语句:select score*0.5+20as加权成绩from grade where(score*0.5+20)60order by score*0.5+20,以下()描述是正确的。A、错误提示:orderby子句中不能出现表达式。B、正确执行,显示grade表中各列值,按照score由低到高排序。C、正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。D、错误提示:where子句中不能出现表达式。

考题 学生选课信息表:sc(sno,cno,grade),主键为(sno,cno),从学生选课信息表中找出无成绩的元组的SQL语句是()。A、SELECT * FROM sc WHERE grade=NULLB、SELECT * FROM sc WHERE grade IS“ ”C、SELECT * FROM sc WHERE grade=‘ ’D、SELECT * FROM sc WHERE grade IS NULL

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

考题 多选题关于分组查询,以下()描述是错误的。A使用group by进行分组查询B对分组后的条件的筛选必须使用Having子句CHaving子句不能与where子句同时出现在一个select语句中D在使用分组查询时,在select列表中只能出现被分组的列。如:select courseid from grade group by courseid

考题 填空题SELECT语句中的WHERE说明()。

考题 单选题执行Sql语句:select score*0.5+20as加权成绩from grade where(score*0.5+20)60order by score*0.5+20,以下()描述是正确的。A 错误提示:orderby子句中不能出现表达式。B 正确执行,显示grade表中各列值,按照score由低到高排序。C 正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。D 错误提示:where子句中不能出现表达式。

考题 单选题设在某SELECT语句的WHERE子句中,需要对Grade列的空值进行处理。下列关于空值的操作,错误的是()。A Grade IS NOT NULLB Grade IS NULLC Grade = NULLD NOT (Grade IS NULL)

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