1)Which statement shows the maximum salary paid in each job category of each department _______
A. select dept_id, job_cat,max(salary) from employees where salary > max(salary);
B. select dept_id, job_cat,max(salary) from employees group by dept_id,job_cat;
C. select dept_id, job_cat,max(salary) from employees;
D. select dept_id, job_cat,max(salary) from employees group by dept_id;
E. select dept_id, job_cat,max(salary) from employees group by dept_id,job_cat,salary;
2)description of the students table:
sid_id number
start_date date
end_date date
which two function are valid on the start_date column _________。
A. sum(start_date)
B. avg(start_date)
C. count(start_date)
D. avg(start_date,end_date)
E. min(start_date)
F. maximum(start_date)
3)for which two constraints does the oracle server implicitly create a unique index ______。
A. not null
B. primary
C. foreign key
D. check
E. unique
4)in a select statement that includes a where clause,where is the group by clause placed in the select statement ______。
A. immediately after the select clause
B. before the where clause
C. before the from clause
D. after the order by clause
E. after the where clause
5)in a select statement that includes a where clause,where is the order by clause placed in the select statement ______.
A.immediately after the select clause
B.before the where clause
C.after all clause
D.after the where clause
E.before the from clause
6)eva luate there two sql statements______.
Select last_name,salary from employees order by salary;
Select last_name,salary from employees order by 2 asc;
A.the same result B.different result C.the second statement returns a syntax error
7) you would like to display the system date in the format“20051110 14:44:17”。Which select statement should you use ______。
A. select to_date(sydate,’yearmmdd hh:mm:ss’)from dual;
B. select to_char(sydate,’yearmonthday hh:mi:ss’)from dual;
C. select to_date(sydate,’yyyymmdd hh24:mi:ss’)from dual;
D. select to_char(sydate,’yyyymmdd hh24:mi:ss’)from dual;
E. select to_char(sydate,’yy-mm-dd hh24:mi:ss’)from dual;
8)which select statement will the result ‘ello world’from the string‘Hello world’ ______.
A. select substr(‘Hello World’,1)from dual;
B. select substr(trim(‘Hello World’,1,1))from dual;
C. select lower(substr(‘Hello World’,1))from dual;
D. select lower(trim(‘H’from‘Hello World’))from dual;
9)which are DML statements(choose all that apply)______.
A.commit B.merge C.update D.delete E.creat F.drop
10)Select 语句中用来连接字符串的符号是______.
A. “+” B. “&” C.“||” D.“|”
问答题: 什么是聚集索引,什么是非聚集索引,什么又是主键?
(26)数据库系统中的人员通常包括
1、数据库管理员 2、系统分析员 3、数据库设计员 4、应用程序员 5、最终用户
A)仅1、3、5
]B)仅1、2、3、5
C)仅1、3、4、5
D)全部
(27)下列关于“数据库三级模式结构”的叙述中哪一条是正确的?
A)视图是外模式
B)模式是数据库中全体数据的逻辑结构和牲的描述
C)一个数据库可以有多个模式
D)一个数据库只有一个内模式
(28)在关系数据库中,若数据库的存储结构改变了,而用户的应用程序可以不变。这是
A)数据的物理独立性
B)数据的逻辑独立性
C)数据的位置独立性
D)数据的语义独立性
(29)下面列出的数据模型中哪一种是数据库系统中最早出现的数据模型?
A)关系模式
B)层次模型
C)网状模型
D)面向对象模型
(30)关系数据模型的三个要素是
A)关系数据结构、关系*作集合和关系规范化理论
B)关系数据结构、关系规范化理论和关系完整性的约束
C)关系规范化理论、关系*作集合和关系完整性约束
D)关系数据结构、关系*作集合和关系完整性约束
选择题31题
在概念模型中,客观存在并可以相互区别的事物称为
A)码 B)属性 C)联系 D)实体
答案是D
选择题32题
下列叙述中,哪一条是不正确的?
A)一个二维表就是一个关系,二维表的名就是关系的名
B)关系中的列称为属性,属性的个数称为关系的元或度
C)关系中的行称为元组,对关系的描述称为关系模式
D)属性的取值范围称为值域,元组中的一个属性值称为分量
答案是A
选择题33题
在SQL语言的Select语句中,用于对结果元组进行排序的是哪一个子句?
A)GROUPBY B)HAVING C)ORDER BY D)Where
答案为:C
选择题34题
设有关系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=