查询student表中的所有非空email信息,以下语句正确的是()。
第1题:
根据SQL标准,下面哪条语句与select min(age) from student等效?()
A select age from student where age >= min(age)
B select distinct age from student where age >= all min(age)
C select distinct a.age from student a where a.age<= any (select distinctb.age from student b)
D select distinct a.age from student a where a.age<= all (select distinct b.age from student b)
第2题:
查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是
A.SELECT sname FROM student,SELECT cno,grade FROM sc WHERE student.sno=sc.sno
B.SELECT sname,cno,grade FROM student,course WHERE student.sno=course.cno
C.SELECT sname,cname,grade FROM student,course,sc WHERE student.sno=sc.sno and sc.cno=course,cno
D.SELECT sname,cno,grade FROM student,sc WHERE student.sno=sc.sno
第3题:
使用SQL语句从表STUDENT中查询所有姓王的同学的信息,正确的命令是:______。
A.SELECT*FROM STUDENT WHERE LEFT(姓名,2)=“王”
B.SELECT*FROM STUDENT WHERE RIGHT(姓名,2)=“王”
C.SELECT*FROM STUDENT WHERE TRIM(姓名,2)=“王”
D.SELECT*FROM STUDENT WHERE STR(姓名,2)=“王”
第4题:
对于学生信息表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是
A.SELECT sno,sname FROM student WHERE grade=NULL
B.SELECT sno,sname FROM student WHERE grade IS NULL
C.SELECT sno,age FROM student WHERE grade IS NULL
D.SELECT sno,age FROM student WHERE grade=NULL
第5题:
要找出籍贯是湖北或湖南的学生的姓名和性别,下述SQL语句正确的有哪三项()。
第6题:
数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()
第7题:
数据库中有一张表名称为Student,列ZZMM表示学生政治面貌,学生的政治面貌可能为“党员”、“团员”和群众,要求查询政治面貌为“党员”和“团圆的学生信息”,下列哪个SQL语句是正确的()
第8题:
查询student表中的所有非空email信息,以下语句正确的是()
第9题:
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()
第10题:
查询名字中第2个字为“阳”的学生的姓名和学号,正确的是()
第11题:
Select email from student where email !=null
Select email from student where email not is null
Select email from student where email <> null
Select email from student where email is not null
第12题:
Select* From Student Where Sex=’男’
Select* From Student Where Number NotIn(Select Number From Student Where Sex<>=’男’)
Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)
Select* From Student Where Sex<>’男’
第13题:
根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()
A select * from student where age< avg(age)
B select * from student having age< avg(age)
C select * from student a where a.age< (select avg(b.age) from student b)
D select * from student a where (select avg(b.age) from student b ) >= a.age
第14题:
对于数据表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是______。
A.SELECT sno,sname FROM student WHERE gade=NULL
B.SELECT sno,sname FROM student WHERE grade IS NULL
C.SELECT sno,age FROM student WHERE grade IS NULL
D.SELECT mo,age FROM student WHERE grade=NULL
第15题:
对于学生信息表:student(sno,sname,sex,age,dept),要查询所有刘姓学生的信息,正确的语句是
A.SELECT * FROM student WHERE sname LIKE'刘 * '
B.SELECT * FROM student WHERE sname LIKE'刘 $'
C.SELECT * FROM student WHERE sname LIKE'刘%'
D.SELECT * FROM student WHERE sname LIKE'刘&'
第16题:
已知有关系“STUDENT”,则关系运算σANE<80(STUDENT)用SQL语句表示为(52)。
A.SELECT( * )FROM STUDENT WHERE AVE < 80
B.SELECT( * )FROM STUDENT HAVING AVE < 80
C.SELECT(AVE)FROM STUDENT WHERE AVE < 80
D.SELECT(AVE) FROM STUDENT HAVING AVE < 80
第17题:
若要检索“Student”数据表中的所有记录和字段,则SQL语句为()
第18题:
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中年龄介于20和30岁之间的数据,下列哪个SQL语句是正确的?()
第19题:
查找student表中所有电话号码(列名:telephone)的第一位为8或6,第三位为0的电话号码()。
第20题:
在Transact-SQL语法中,以下SELECT语句正确的是()。
第21题:
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?()
第22题:
Select email from student where email!=null
Select email from student where emailnotisnull
Select email from student where email<>null
Select email from student where emailisnotnull
第23题:
Select email from student where email !=null
Select email from student where email not is null
Select email from student where email<>null
Select email from student where email is no tnull