以下哪条SQL语句会返回一个错误?()A、SEL*FR天空;B、select恒星from天空;C、SELECT恒星FROM天空;D、SELECT*FROM天空;
以下哪条SQL语句会返回一个错误?()
- A、SEL*FR天空;
- B、select恒星from天空;
- C、SELECT恒星FROM天空;
- D、SELECT*FROM天空;
相关考题:
有以下SQL语句:SELECT 订单号,签订日期,金额 FROM 订单,职员WHERE 订单.职员号=职员.职员号 AND 姓名=“李二”与如上语句功能相同的SQL语句是A) SELECT订单号,签订日期,金额FROM订单WHERE EXISTS(SELECT*FROM职员WHERE姓名=“李二”)B) SELECT订单号,签订日期,金额FROM订单WHEREEXISTS(SELECT*FROM职员WHERE职员号=订单.职员号AND姓名=“李二”:C) SELECT订单号,签订日期,金额FROM订单WHERE IN(SELECT职员号FROM职员WHERE姓名=“李二”)D) SELECT订单号,签订日期,金额FROM订单WHEREIN(SELECT职员号FROM职员WHERE职员号=订单.职员号AND姓名=“李二”)
SQL语句:SELECT*FROM班级WHERE班级号NOT IN;(SELECT班级号FROM学生)该语句等价于:SELECT*FROM班级WHERE NOT______;(SELECT*FROM学生WHERE班级号=班级.班级号)
有SQL语句: SELECT*FROM教师WHERENOT(工资>30000R工资<2000)与如上语句等价的SQL语句是A.SELECT*FROM 教师 WHERE 工资 BETWEEN 2000 AND 3000B.SELECT*FROM 教师 WHERE 工资>2000 AND工资<3000C.SELECT*FROM 教师 WHERE 工资>2000 OR工资<3000D.SELECT*FROM 教师 WHERE 工资<=2000 AND工资>3000
标准的SQL基本查询语句的格式是( )。A.SELECT...FROM...WHEREB.SELECT...WHERE...FROMC.SELECT...WHERE...GROUP BYD.SELECT...FROM...ORDER BY
有如下SQL-SELECT语句SELECT * FROM HH WHERE 单价 BETWEEN 10.6 AND 13.4与该语句等价的是A.SELECT * FROM HH WHERE 单价=13.4 AND 单价=10.6B.SELECT * FROM HH WHERE 单价13.4 AND 单价10.6C.SELECT * FROM HH WHERE 单价=13.4 AND 单价=10.6D.SELECT * FROM HH WHERE 单价13.4 AND 单价10.6
根据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.ageD select distinct a.age from student a where a.age
根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()A select * from student where ageB select * from student having ageC select * from student a where a.ageD select * from student a where (select avg(b.age) from student b ) >= a.age
利用SQL语句,检索仓库中至少有一名职工的仓库信息,正确的命令是______.A.SELECT。FROM仓库表WHEREIN; (SELECT仓库号FROM职工表)B.SELECT 2p FROM仓库表WHERENOTm; (SELECT仓库号FROM职工表)C.SELECT::FROM仓库表WHERE仓库号EXISTS; (SELECT*FROM职工表WHERE仓库号:仓库表.仓库号)D.SELECT*FROM仓库表WHEREEXISTS; (SEL。E(:T*FROM职工表WHERE仓库号:仓库表.仓库号)
有如下SQL语句: SELECT姓名FROM学生表WHERE学号IN; (SELECT学号FROM成绩表WHERE成绩>90) 下列哪条命令与该SQL语句等价A.SELECT姓名FROM学生表WHERE EXISTS; (SELECT学号FROM成绩表WHERE成绩>90)B.SELECT姓名FROM学生表WHERE EXISTS; (SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)C.SELECT姓名FROM学生表WHERE学号EXISTS; (SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)D. SELECT姓名FROM学生表WHERE学号=; (SELECT学号FROM成绩表WHERE成绩>90)
有SQL语句: SELECT DISTINCT 系号 FROM 教师 WHERE 工资>=; ALL(SELECT 工资 FROM 教师 WHERE 系号 =“02”) 与如上语句等价的SQL语句是A.SELECT DISTINCT 系号 PROM 教师 WHERE 工资>=; (SELECT MAX(工资)FROM 教师 WHERE 系号=“02”)B.SELECT DISTINCT 系号 FROM 教师 WHERE 工资=; (SELECT MIN(工资)FROM 教师 WHERE 系号=“02”)C.SELECT DISTINCT 系号 FROM 教师 WHERE 工资>=; ANY(SELECT 工资 FROM 教师 WHERE 系号=“02”)D.SELECT DISTINCT 系号 FROM 教师 WHERE 工资>=; SOME(SELECT 工资 FROM 教师 WHERE 系号=“02”)
有下列SQL SELECT语句:SELECT*FROM 工资表 WHERE 基本工资=1000下列与该语 有下列SQL SELECT语句: SELECT*FROM 工资表 WHERE 基本工资<=3000 AND 基本工资>=1000 下列与该语句等价的是( )。A.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 1000 AND 3000B.SELECT*FROM 工资表 WHERE 基本工资 BETWEEN 3000 AND 1000C.SELECT*FROM 工资表 WHERE 基本工资 FROM 1000 INTO 3000D.SELECT*FROM 工资表 WHERE 基本工资 FROM 3000 INTO 1000
有SQL语句:SELECT * FROM教师WHERE NOT(工资3000 OR 工资2000)与如上语句等价的SQL语句是A.SELECT*FROM 教师 HWERE 工资 BETWEEN 2000 AND 3000B.SELECT*FROM 教师 HWERE 工资 2000 AND 工资3000C.SELECT*FROM 教师 HWERE 工资2000 OR 工资3000D.SELECT*FROM 教师 HWERE 工资=2000 AND 工资=3000
有SQL语句:SELECT DISTINCT系号FROM教师WHERE 工资=ALL (SELECT 工资FROM教师WHERE系号=\02\) 与如上语句等价的SQL语句是A.SELECT DISTINCT系号FROM教师WHERE工资=(SELECT MAX(工资)FROM教师WHERE 系号="02")B.SELECT DISTINCT系号FROM教师WHERE工资=(SELECT MIN(工资)FROM教师WHERE 系号="02")C.SELECT DISTINCT系号FROM教师WHERE工资=(ANY(SELECT(工资)FROM教师WHERE 系号="02")D.SELECT DISTINCT系号FROM教师WHERE工资=(SOME (SELECT(工资)FROM教师WHERE 系号="02")
SQL语句:SELECT木FROM班级WHERE班级号NOT IN;(SELECT班级号FROM学生)该语句等价于:SELECT﹡FROM班级WHERE NOT__________;(SELECT木FROM学生WHERE班级号=班级.班级号)
以下哪条SELECT语句将返回一个数字值?()A、SELECT SYSDATE + 600 / 24 FROM 雇员;B、SELECT ROUND(聘用日期, DAY) FROM 雇员;C、SELECT (SYSDATE - 聘用日期) / 7 FROM 雇员;D、SELECT SYSDATE - 7 FROM 雇员;
在Oracle中,有一个名为seq的序列对象,以下语句能返回序列值但不会引起序列值增加的是()A、select seq.ROWNUM from dualB、select seq.ROWID from dualC、select seq.CURRVAL from dualD、select seq.NEXTVAL from dual
下面哪条语句可以取出薪水最高的前三个人:()A、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY );B、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY ) WHERE ROWNUM=3;C、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY DESC) WHERE ROWNUM=3;D、SELECT * FROM EMPLOYEES WHERE ROWNUM=3 ORDER BY SALARY DESC;
下列SQL语句中,能够完成并运算的是()。A、SELECT * FROM 篮球爱好者 UNION SELECT * FROM 足球爱好者B、SELECT * FROM 篮球爱好者 INTERSECT SELECT * FROM 足球爱好者C、SELECT * FROM 篮球爱好者 EXCEPT SELECT * FROM 足球爱好者D、SELECT * FROM 篮球爱好者 ,足球爱好者
下列SQL语句中,能够完成求某列最大值的是()。A、SELECT AVG(Age) FROM StudentB、SELECT MAX(Age) FROM StudentC、SELECT MIN(Age) FROM StudentD、SELECT COUNT(*) FROM Student
V5.x系统中,用SQL语句查询Sybase版本的语句是()A、select ##versionB、select ##version from masterC、select @@version from masterD、select @@version
有如下SQL语句:下列哪条命令与该SQL语句等价() SELECT姓名FROM学生表WHERE学号IN; (SELECT学号FROM成绩表WHERE成绩>90)A、SELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE成绩>90)B、SELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)C、SELECT姓名FROM学生表WHERE学号EXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)D、SELECT姓名FROM学生表WHERE学号=;(SELECT学号FROM成绩表WHERE成绩>90)
创建一个名为‘Customers’的新表,同时要求新表中包含表‘clients’的所有记录,sql语句是()。A、Select*into customers from clientsB、Select into customers from clientsC、Insert into customers select*from clientsD、Insert customers select*from clients
现有表Employee,字段:id(int)、firstname(varchar)、lastname(varchar);以下sql语句错误的是()A、select firstname+’.’+lastnameas’name’from employeeB、select firstname+’.’+lastname=’name’from employeeC、select’name’=firstname+’.’+lastnamefrom employeeD、select firstname,lastname from employee
创建一个名为’catt’的新表,要求该表包含’kehu’表的所有记录,应使用的SQL语句是()A、select*intocatt where from kehuB、select*into catt from kehuC、insert into catt select*from kehuD、inser tinto catt from select*from kehu
在Transact-SQL语法中,以下SELECT语句正确的是()。A、SELECT * FROM studentB、SELECT * FROM student WHERE GETDATE()C、SELECT * FROM student ORDER st_idD、SELECT * FROM student BY St_name
当需要返回当前用户的名字,可以执行如下()SQL语句。A、SELECT user FROM V$DBAB、SELECT user FROM dualC、SELECT name FROM dualD、SELECT name FROM V$DBA
单选题有如下SQL语句:下列哪条命令与该SQL语句等价() SELECT姓名FROM学生表WHERE学号IN; (SELECT学号FROM成绩表WHERE成绩>90)ASELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE成绩>90)BSELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)CSELECT姓名FROM学生表WHERE学号EXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)DSELECT姓名FROM学生表WHERE学号=;(SELECT学号FROM成绩表WHERE成绩>90)