Oracle数据库建成绩表,oracle数据库期末考试试题及答案(一)

一、选择

1) CBO与RULE的区别,RBO根据规则选择最佳执行路径来运行查询,CBO

根据表统计找到最低成本的访问数据的方法确定执行计划。使用CBO需要

注意:

a) 需要使用提示(Hint)

b) 优化SQL的写法

c) 选择最有效率的表名顺序

d) 需要经常对表进行ANAL YZE命令进行分析统计

d) 需要稳定执行计划

2) 在Oracle中,一个用户拥有的所有数据库对象统称为()。

a) 数据库

b) 模式

c) 表空间

d) 实例

3) 在Oracle中,可用于提取日期时间类型特定部分(如年、月、日、时、分、

秒)的函数有()。

a) DA TEPART

b) EXTRACT

c) TO_CHAR

d) TRUNC

4) 在Oracle中,有一个教师表teacher的结构如下:

ID NUMBER(5)

NAME V ARCHAR2(25)

EMAIL VARCHAR2(50)

下面哪个语句显示没有Email地址的教师姓名()。

a) SELECT name FROM teacher WHERE email = NULL;

b) SELECT name FROM teacher WHERE email <> NULL;

c) SELECT name FROM teacher WHERE email IS NULL;

d) SELECT name FROM teacher WHERE email IS NOT NULL;

5) 在Oracle数据库的逻辑结构中有以下组件:

A 表空间

B 数据块

C 区

D 段

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
资源包括:19道SQL语句查询题目及答案建表SQL语句、题目相关的表截图。答案中除了包含intersect、except关键词的答案,其余都在MySQL上跑过,确保运行无误(MySQL不支持intersect、except关键词),因为脑细胞死得有些多,资源分不少请大家见谅。 题目如下: Q:Find all customers who have both an account and a loan at the Perryridge branch.(ps:MySQL不支持intersect运算符) Q:Find the number of depositors for each branch. Q:Find the names of all branches where the average account balance is more than $1,200. Q:Find the names of all branches that have greater assets than all branches located in Brooklyn. Q:Find all accounts with the maximum balance. Q:Find all branches that have greater assets than some branch located in Brooklyn. Q:Find all customers who have both an account and a loan at the bank. Q:Find all customers who have accounts at all branches located in Brooklyn. Q:Find the average account balance at the Perryridge branch. Q:Find the number of tuples in the customer relation. Q:Find the number of depositors in the bank. Q:Find the number of depositors for each branch. Q:Find all customers who have a loan at the bank but do not have an account at the bank. Q:Find all branches where the total account deposit is greater than the average of the total account deposits at all branches. Q:Find all customers who have both an account and a loan at the bank. Q:Find all customers who have at most one account at the Perryridge branch. Q:Provide as a gift for all loan customers of the Perryridge branch, a $200 savings account. Let the loan number serve as the account number for the new savings account. Q:Increase all accounts with balances over $10,000 by 6%, all other accounts receiver 5%.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值