from an advertisment
from a medical magazine
from a newspaper
from a biography
第1题:
在学生表中查找没有选课的学生,下列语句正确的是( )。
A.SELECT*FROM 学生 WHERE EXISTS; (SELECT*FROM 选课 WHERE学生号=学生.学生号)
B.SELECT*FROM 学生 WHERE NOT EXISTS; (SELECT*FROM 选课 WHERE 学生号=学生.学生号)
C.SELECT*FROM 学生 WHERE EXISTS; (SELECT*FROM 选课 WHERE 学生号=学生号)
D. SELECT*FROM 学生 WHERE NOT EXISTS; (SELECT*FROM 选课 WHERE 学生号=学生号)
第2题:
有如下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)
第3题:
有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")
第4题:
对由SELECT--FROM—WHERE—GROUP--ORDER组成的SQL语句,其在被DBMS处理时,各子句的执行次序为()
A.SELECT—FROM—GROUP—WHERE—ORDER
B.FROM——SELECT--WHERE——GROUP——ORDER
C.FROM——WHERE——GROUP——SELECT——ORDER
D.SELECT——FROM——WHERE——GROUP——ORDER
第5题:
对由SELECT--FROM—WHERE—GROUP--ORDER组成的SQL语句,其在被DBMS处理时,各子句的执行次序为()
第6题:
有如下SQL语句:下列哪条命令与该SQL语句等价() SELECT姓名FROM学生表WHERE学号IN; (SELECT学号FROM成绩表WHERE成绩>90)
第7题:
SELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE成绩>90)
SELECT姓名FROM学生表WHEREEXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)
SELECT姓名FROM学生表WHERE学号EXISTS;(SELECT学号FROM成绩表WHERE学号=学生表.学号AND成绩>90)
SELECT姓名FROM学生表WHERE学号=;(SELECT学号FROM成绩表WHERE成绩>90)
第8题:
SELECT*FROM客户WHERE客户号NOT IN
SELECT客户号FROM订单WHERE YEAR(签订日期)=2011)
SELECT*FROM客户WHERE NOT EXIST
SELECT*FROM订单WHERE客户号=客户.客户号AND YEAR(签订日期)=2011)
SELECT*FROM客户WHERE客户号!=ANY
SELECT客户号FROM订单WHERE YEAR(签订日期)=2011)
SELECT*FROM客户WHERE客户号!=ALL
SELECT客户号FROM订单WHERE YEAR(签订日期)=2011)
第9题:
from an advertisment
from a medical magazine
from a newspaper
from a biography
第10题:
prefixes received from any other BGP peer and prefixes locally originated via network statements or redistributed
all prefixes in its routing table
prefixes received from EBGP peers and prefixes locally originated via network statements or redistributed
prefixes received from EBGP peers and prefixes received from route reflectors
prefixes received from other IBGP peers, prefixes received from EBGP peers,and prefixes redistributedto BGP
prefixes received from other IBGP peers and prefixes received from route reflectors
第11题:
SELECT DISTINCT产品号FROM产品WHERE单价>=(
SELECT MAX(单价)FROM产品WHERE SUBSTR(产品号1,1)=2)
SELECT DISTINCT产品号FROM产品WHERE单价>=(
SELECT MIN(单价)FROM产品WHERE SUBSTR(产品号1,1)=2)
SELECT DISTINCT产品号FROM产品WHERE单价>=ANY(
SELECT单价FROM产品WHERE SUBSTR(产品号1,1)=2)
SELECT DISTINCT产品号FROM产品WHERE单价>=SOME(
SELECT单价FROM产品WHERE SUBSTR(产品号1,1)=2)
第12题:
a story book
a poster
a science fiction
a medical magazine
第13题:
假设所有学生都已选课,所有的选课成绩都已确定。检索所有选课成绩都在90分以上(含)的学生信息,正确的SQL命令是( )。
A.SELECT*FROM学生WHERE学号IN(SELECT学号FROM选课WHERE成绩>=90)
B.SELECT*FROM学生WHERE学号NOT IN(SELECT学号FROM选课 WHERE成绩<90)
C.SELECT*FROM学生WHERE学号!=ANY(SELECT学号FROM选课 WHERE成绩<90)
D.SELECT*FROM学生WHERE学号=ANY(SELECT学号FROM选课 WHERE成绩>=90)
第14题:
有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”)
第15题:
SQL语句:
SELECT木FROM班级WHERE班级号NOT IN;
(SELECT班级号FROM学生)
该语句等价于:
SELECT﹡FROM班级WHERE NOT__________;
(SELECT木FROM学生WHERE班级号=班级.班级号)
第16题:
第17题:
下面哪条语句可以取出薪水最高的前三个人:()
第18题:
Click the Exhibit button and examine the data in the EMPLOYEES table. Which three subqueries work?()
第19题:
SELECT*FROM教师表WHERE性别=男
SELECT*FROM教师表WHERE性别=男
SELECT*FROM教师表WHERE性别=男
SELECT*FROM教师表WHERE性别=男
第20题:
SELECT * FROM employees where salary > (SELECT MIN(salary) FROM employees GROUP BY department _ id);
SELECT * FROM employees WHERE salary = (SELECT AVG(salary) FROM employees GROUP BY department _ id);
SELECT distinct department_id FROM employees Where salary > ANY (SELECT AVG(salary) FROM employees GROUP BY department _ id);
SELECT department_id FROM employees WHERE SALARY > ALL (SELECT AVG(salary) FROM employees GROUP BY department _ id);
SELECT last_name FROM employees Where salary > ANY (SELECT MAX(salary) FROM employees GROUP BY department _ id);
SELECT department_id FROM employees WHERE salary > ALL (SELECT AVG(salary) FROM employees GROUP BY ANG (SALARY));
第21题:
select * from emp where comm='';
select * from emp where comm=null;
select * from emp where nvl(comm)=0;
select * from emp where comm is null;
select * from emp where nvl(comm,0)=0;
第22题:
select * from emp where ename in 'S%';
select * from emp where ename='S%';
select * from emp where ename like 'S%';
select * from emp where ename like 'S_';
第23题:
SELECT DISTINCT歌手号FROM歌手WHERE最后得分>=(SELECT MAX(最后得分)FROM歌手WHERE SUBSTR(歌手号1,1)=″2″)
SELECT DISTINCT歌手号FROM歌手WHERE最后得分>=(SELECT MIN(最后得分)FROM歌手WHERE SUBSTR(歌手号1,1)=″2″)
SELECT DISTINCT歌手号FROM歌手WHERE最后得分>=ANY(SELECT最后得分FROM歌手WHERE SUBSTR(歌手号1,1)=″2″)
SELECT DISTINCT歌手号FROM歌手WHERE最后得分>=SOME(SELECT最后得分FROM歌手WHERE SUBSTR(歌手号,1,1)=″2″)
第24题:
SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY );
SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY ) WHERE ROWNUM<=3;
SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY DESC) WHERE ROWNUM<=3;
SELECT * FROM EMPLOYEES WHERE ROWNUM<=3 ORDER BY SALARY DESC;