题数: +38

8 月新增题型

01 examine this statement
检查这个语句

select last_name from employees order by case where salary=(select max(salary) employees) then ‘A’ else last_name end,last_name desc;

which two statements are true?
哪两种说法是正确的?
B) all remaining employee names will appear in descending order.
所有剩余的员工姓名将按降序显示。
F) the names of employees earning the maximum salary will appear first in an unspecified order.
获得最高工资的雇员的名字将以未指明的顺序出现在最前面。

02 examine this statement:
select 1 as id, 'john; as first_name , null as commission from dual intersect
select 1, ;john;, null from dual order by 3;

what is returned upon execution?
执行时返回什么?
B) 1 row
1行

03 examine this partial query:
检查这个部分查询:

which group by clause must be added so the query returns the results shown?
必须添加哪个group by子句,以便查询返回所显示的结果?
B) group by ch.channel_type, rollup(t_month, co_country_code).
按ch.channel_type、rollup(t_month, co_country_code)分组。

04 which two are true?
哪两个是正确的?


C) floor returns the largest integer less than or equal to a specified number.
floor返回小于或等于指定数字的最大整数。
D) concat joins two character strings together.
concat连接两个字符串。

05 which two are true?
哪两个是正确的?
A) add_months adds a number of calendar months to a date.
add_months将日历月的个数添加到一个日期。
D) last _day returns the date of the last day of the month for the date argument passed to the function.
last _day返回传递给函数的date参数当月最后一天的日期。

06 examine this statement:
检查这个语句:

on which two columns of the table will an index be created automatically?
将在表的哪两列上自动创建索引?
E) serial_no
F) order_id

07 you want to return the current date and time from the user session, with a date type of timestam with time one
您希望从用户会话返回当前日期和时间,日期类型为timestam,时间为1
which function will do this ?
哪个函数可以做到这一点?
A) current_timestamp

08 which two will execute successfully?
哪两个将成功执行?

A) select nvi(‘date’,200) from ( select null as ‘‘date’’ from dual);
E) select nvl('date, sysdate) from dual;

09 which statement will execute successfully?
哪条语句会成功执行?
A) select 1,2 from dual union select 3,4 from dual order by 1,2
从对偶集中选择1,2,从对偶序中选择3,4,从对偶序中选择1,2

10 examine the description of the employyes table:
10检视雇佣表的描述:

which statement will fail?
哪个语句会失败?
A) select department_id , count() from employees where department_id < 90 and count() >3 group by department_id;

11 whth two are true about querles using set operators(union,union all, instersect and minus) ?
关于使用集合操作符(union,union all, instersect和minus)的查询,哪两个是真的?
B) none of the set operators can be used when selecting clob columns
在选择clob列时,不能使用set操作符
D) there must be an equal number of columns in each select list
每个选择列表的列数必须相等

12 examine the desciption of the employees tabl:
检查员工的填写情况:

which two queries return all rows for employees whose salary is greater than the average salary in their department?
哪两个查询返回工资大于其部门平均工资的员工的所有行?
A) select * from employees e1 where salary >( select avg(salary) from employees c2 where e1.department_id=e2.department_id);
C) select * from ( select e.*avg(salary) over(partition by department_id) avg_sal from employees e) where salary >avg_sal;

13 examine the description of the bricks_tables:
检查bricks_tables的描述:

which two queries execute successfully?
哪两个查询成功执行?
C) select shape,color from bricks minus select color,shape from bricks_stage
D) select brick_id, shape from bricks minus select weight, color from bricks_stage

14 you create a table named 123.
14创建了一个名为123的表。
which statement runs successfully?
哪条语句运行成功?
A) select * from “123”;

15 no user-defined locks are used in your database
数据库中没有使用用户定义的锁
which three are true about transaction control language(TCL)?
关于事务控制语言(TCL),哪三个是正确的?
A) rollback without the to savepoint clause undoes all the transaction’s changes, releases its locks, and erases all its savepoints
不带to savepoint子句的回滚将撤销事务的所有更改、释放其锁并擦除其所有保存点
C) commit erases all the transaction’s savepoints and releases its locks
commit删除事务的所有保存点并释放其锁
D) commit ends the transaction and makes all its changes permanebt
提交结束事务,并使其所有更改永久

16 which two are about virtual columns?
哪两个是关于虚拟列的?
A) they can be indexes.
它们可以是索引。
D)they can be referenced in the where clause of an update or delate statement.
它们可以在update或delate语句的where子句中被引用。

17 examine the descroption of the customers table:
检查客户表的描述:


which two statements will do an implicit conversion?
哪两个语句将进行隐式转换?
A) select * from customers where customer_id=‘0001’.
B)select * from customers where insert_date = ‘01-JAN-19’.

18 which two queries return rows for employees whose manager works in a different department?
哪两个查询返回经理在不同部门工作的员工的行?
C) select emp.* from employees emp join employees mgr on emp.manager_id=mgr.employees_id and emp.department_id < > mgr.department_id;
E) select emp.* from employees emp right join employees mgr on emp.manager_id=mgr.employee_id and emp.department_id < > mgr.department_id where emp.employee_id is not null;

19 which three statements are trun about indexes and their administration in an oracle database?
哪三条语句是关于索引及其在oracle数据库中的管理的?
A) the same table column can be part of a unique and non-unique index.
同一个表列可以是惟一和非惟一索引的一部分。
B) an index can be created as part of a create table statement.
索引可以作为create table语句的一部分创建。
C) a descending index is a type of function-based index.
降序索引是一种基于函数的索引。

20 you need to allow user andrew to:
你需要允许用户安德鲁
:
1 modify the title and address columns of your customers table
修改客户表的标题和地址列
2 grant the permission to other users
将权限授予其他用户
which statement will do this?
哪个语句可以做到这一点?
A) grant update (title, address) on customer to andrew will grant option.
授权客户更新(标题,地址)给安德鲁将授权选项。

=======================================================================================================================================================================================================================

71 部分新题

01 examine the description of the employees tables;
检查雇员表的描述;
for each employee in department 90 you want to display;
对于90部门的每一位员工,你想要展示;
1、their last name
他们的姓氏
2、the number of complete the number of weeks,starting with the longest serving employee first.
完成的次数为周数,先从在职时间最长的员工开始。
which statement will accomplish this?
哪一个语句可以完成这个任务?
C、select last_name, trunc((sysdate hire_date) / /) as tenure from employees
选择last_name, trunc((sysdate hire_date) / /)作为雇员的保留期
where department_id = 90 order by tenure desc;
其中department_id = 90任期订单desc;

02 which two are true about unused columns?
关于未使用的列,哪两个是正确的?
B、unused columns retaim their data until they are dropped.
未使用的列重新定向它们的数据,直到它们被删除。
C、once a column has been set to unused , a new column with the same name can be added to the table.
当一个列被设置为未使用时,可以将具有相同名称的新列添加到表中。

03 which two are true about external tables that use the oralce datapump access driver?
关于使用oralce数据池访问驱动程序的外部表,哪两个是正确的?

B、when creating an external, data can be selected from another external table or from a table whose rows are stored in database blocks.
当创建一个外部表时,可以从另一个外部表或从一个表中选择数据,该表的行存储在数据库块中。
C、creating an external table creates a dump file that can be used by an external table in the same or a different database.
创建外部表将创建一个转储文件,该文件可由相同或不同数据库中的外部表使用。

04 you create a table named 123.
您创建了一个名为123的表。
which statement runs successfully?
哪条语句运行成功?
B、select * from “123;
B,从“123”中选择*;

05 examine the despcription of the employees table.
检查employees表的描述。

which statement will exeute sccessfully ,returning distinct employess with non-null first name ?
哪一种陈述将被删除,返回不同的雇主与非空的名字?n
A、select distinct * from employees where first_name is not null.
从first_name不为空的雇员中选择distinct *。

6 which two true about queries using set operators (union, union all, intersect and minus)?
关于使用集合操作符(union, union all, intersect和minus)的查询,哪两个是正确的?

D) the name of each column in the first select list must match the name of the corresponding column in each subsequent select list.
第一个选择列表中每一列的名称必须与后面每个选择列表中对应列的名称相匹配。
E) none of the set operators can be used when selecting CLOB columns.
在选择CLOB列时,不能使用set操作符。

7 which two are true about using constraints?
关于使用约束,哪两个是正确的?

B) a table can have only one primary key but have multiple foreign key constraints.
一个表只能有一个主键,但是有多个外键约束。
D) a table can have only one primary key and one foreign key constraint.
一个表只能有一个主键和一个外键约束。

8 you own table departments, referenced by views, indexes, and synonyms.
您拥有由视图、索引和同义词引用的表部门。
examine this command wich executes successfully:
检查该命令执行成功:
drop table deparements purge:
drop table deparements清除:
which three statements are true?
哪三种说法是正确的?
A) it wiil remove all views that are based on the departments table.
它将删除所有基于部门表的视图。
B) neither can it be rolled back nor can the departments table be recovered.
不能回滚,部门表不能恢复。
F) it wiill remove the deoartments table from the database.
它将从数据库中删除起诉书表。

9 which two statements are true about current_timestamp?
关于current_timestamp,哪两个语句是正确的?

C) it retuns a value of data type timestamp.
返回一个数据类型为timestamp的值。
D) it returns the same date as current_date.
它返回与current_date相同的日期。

10 in your session, the nls_format is DD-MM-YYYY.
在您的会话中,nls_format是DD-MM-YYYY。

there are 86400 seconds in a day.
一天有86400秒。
examine this result:
检查结果:
date
02-JAN-2020
which statement returns this?
哪条语句返回这个?
E) select to_char(to_date(‘29-10-2019’) + interval ‘2’ month + interval ‘5’ day - interval ‘120’ second, ‘DD-MON-YYYY’) as “date” from dual;

11 which two are true about the precedence of operators and conditions?
关于运算符和条件的优先级,哪两个是正确的?

B) || has a higher order of precedence than + (addition).
||的优先级高于+(加法)。
D) operators are evaluated before conditions.
运算符在条件之前进行评估。

12 which two are true about transactions in the oralce database?
关于oralce数据库中的事务,哪两个是正确的?

A) an uncommitted transaction is automatically committed when the user exits sqlplus.
当用户退出sql
plus时,未提交的事务将自动提交。
C) a DDL statement issued by session with an uncommitted transaction automatically commits that transaction.
带有未提交事务的会话发出的DDL语句自动提交该事务。

13 examine the data in the EMP table:
检查EMP表中的数据:


you execute this query:
执行此查询:
select deptno as “department”, avg(sal) as averagesalary, max(sal) as “max salary”
选择deptno作为“部门”,avg(sal)作为平均工资,max(sal)作为“最高工资”
from emp
where sal >= 12000 group by “department” order by averagesalary;
其中sal >= 12000组按“部门”订单按平均alary;
why does an error occur?
为什么会出现错误?
C) an alias name must not contain space characters.
别名不能包含空格字符。

14 which three statements about roles are true?
哪三个关于角色的陈述是正确的?

B) privileges are assigned to a role using the alter role statement.
使用alter role语句将特权分配给角色。
D) a role is a named group of related privileges that can only be assigned to a user.
角色是一个指定的相关特权组,它只能分配给一个用户。
G) privileges are assigned to a role using the grant statement.
使用grant语句将特权分配给角色。

15 you have the privileges to create any type of synonym.
您有创建任何类型的同义词的特权。

which statement will create a synonym called EMP for the hcm_employees_records table that is accessible to all users?
哪一条语句将为所有用户都可以访问的hcm_employees_records表创建名为EMP的同义词?
C) create public synonym emp for hcm_employees_records;
为hcm_employees_records创建公共同义词emp;

16 which three statements are true about indexes and their administration in an oralce database?
关于索引及其在数据库中的管理,哪三条语句是正确的?
B) an unusable index is maintained when DML is performed on its underlying table.
在底层表上执行DML时,会维护一个不可用的索引。
C) an index can be created as part of a create table statement.
索引可以作为create table语句的一部分创建。
E) a descending index is a type of function-based index.
降序索引是一种基于函数的索引。

17 examine the description of the order_items table:
检查order_items表的描述:


examine this incomplete query:
检查这个不完整的查询:
select distinct quantity * unit_price total_paid from order_items order by ;
which two can replace so the query completes successfully?
哪两个可以替换<子句>以便查询成功完成?
C) quantity * unit_price.
E) total_paid.

18 which two statements are true about *_tbales views?
关于他的观点,哪两种说法是正确的?
D) you must have any table system privileges, or be granted object privileges on the tbale, to view a table in dba_tables.
要查看dba_tables中的表,您必须拥有任何表系统特权,或者在tbale上被授予对象特权。
E) user_tables displlays all tables owned by the current user.
user_tables显示当前用户拥有的所有表。

19 examine the description of the employees table:
检验员工表的描述:

which two statements will run successfully?
哪两条语句将成功运行?
A) select ’ the first_name is ’ || first_name || ’ ’ from employees;
B) select ’ the first_naem is ’ ’ ’ || first_name || ’ ’ ’ from employees;

20 which two are true about the nvl, nvl2, and coalesce functions?
关于nvl、nvl2和合并函数,哪两个是正确的?

A) coalesce stops evaluating the list of expressions when it finds the first non-null value.
当coalesce找到第一个非空值时,它就停止对表达式列表求值。
E) the first expression in nvl2 is never returned.
nvl2中的第一个表达式永远不会返回。

21 which three stagtements are true about oracle synonyms?
关于oracle同义词,哪三个阶段是正确的?

B) a synonym created by one user can refer to an object belonging to another user.
一个用户创建的同义词可以引用属于另一个用户的对象。
C) a synonym cannot be created for a pl/sql package.
不能为pl/sql包创建同义词。
E) a sequence can have a synonym.
一个序列可以有一个同义词。

  • 此题答案有问题
    22 examine this statement:
    审查这句话:
    select last_name from employees order by case
    按情况从雇员订单中选择last_name
    where salary=(select max(salary) from employees) then ‘A’ else last_name
    end, last_name desc;
    which two statement are true?
    哪两种说法是正确的?
    C) the names of employees eaming the maximum salary will appear first in ascending order.
    包含最高工资的雇员的名字将以升序出现在最前面。

23 which two statemnts execute successfully?
哪两个状态成功执行?
B) select to _char(‘2019-dec-25 25:30’ , 'YYYY-MON-DD HH24:MI ', 'NLS_DATK_LANGUAGE = AMERICAN ') from dual;
C) select to_date(TO_CHAR('2019-DEC-25 15:30 ’ ,‘YYYY-MON-DD HH24:MI’ , ‘NLS_DATE_LANGUAGE = AMERICAN’ ) from dual;

24 which tw ostatements are true about an oralce database?
关于口头数据库,哪两项陈述是正确的?
A) a varchar2 column without data has a null value.
没有数据的avarchar2列有空值。
E) a column definition can specify muitiple data types.
列定义可以指定多个数据类型。

25 examine these two queries and their output:
检查这两个查询及其输出:
select deptno, dnamae from dept;
从部门中选择deptno, dnamae;

now examine this query:
现在检查这个查询:
select ename, dname from emp cross join dept
where job = ‘MANAGER’ and dept.deptno in (10 , 20);
How many rows will be displayed?
将显示多少行?
C) 3

26 which three queries execute successfully?
哪三个查询成功执行?
B) select sysdate - date ‘2019-01-01’ -1 from dual;
C) select (sysdate - date ‘2019-01-01’) /1 from dual;
E) select sysdate - 1 - date ‘2019-01-01’ from dual;

  • 此题答案有问题
    27 examine the description of the employees table:
    检验员工表的描述:

    which two queries return rows for employees whose manager works in a different department?
    哪两个查询返回经理在不同部门工作的员工的行?
    C) select emp.* from employees emp left join employees mgr on emp.manager_id = mgr.employees_id and emp.department_id <> mgr.department_id.

28 examine the data in the new_employees table:
检查new_employees表中的数据:

C) merge into employees e using new_employees ne on (e.employee_id = ne.employee_id)
when matched then update set e.name = ne.name, e.jib_id = ne.job_id, e.salary = ne.salary
when not matched then insert values (ne.employee_id, ne_name, ne.job_id, ne.salary);

29 you want to return the current date and time from the user session, with a data type of timestamp with time zone.
您希望从用户会话返回当前日期和时间,数据类型为带有时区的时间戳。
which function will do this?
哪个函数可以做到这一点?
D) current_timestamp

30 which statement will execute successfully?
哪条语句将成功执行?
B) select 2 from dual union select 3, 4 from dual order by 1, 2;
从对偶集中选择2,从对偶序中选择3,4;

31 examine the description of the employees table:
检查员工表的描述:

which statement will fail?
哪个语句会失败?
D) selelct department_id, count() from employees where department_id <> 90 group by department_id having count() >= 3;

32 examine this statement:
32审查这一陈述:
create table orders (
serial_no number unique,
order_id number primary key,
order_date date not null,
status varchar2(10) check (status in (‘credit’ , ;cash’)),
product_id number references products (product_id),
order _total number);
On which two columns of the table will an index be created automatically?
将在表的哪两列上自动创建索引?
C) product_id
E) order_id

33 you need to allow user andrew to:
你需要允许用户安德鲁: 1 modify the title and address columns of your customers
table. 修改客户表的标题和地址列。 2 grant that permission to other users.
将该权限授予其他用户。 which statement will do this? 哪个语句可以做到这一点? B) grant update
(title, address) on customers to andrew with grante option;
向andrew授予客户更新(头衔、地址)的权利;

34 examine the descriptiom of the employees table:
检查员工表的描述:

which two queries will result in an error?
哪两个查询会导致错误?
B) select last_name , 12 * salary as annual_salary from employees
where annual_salary > 100000 order by annual_salary;
F) select last_name , 12 * salary as annual_salary from employees
where annual_salary >100000 order by 12 * salary;

35 examine the descriptiom of the books table:
检查书表的描述:

which two statements are true ?
哪两种说法是正确的?
B) the second rollback command replays the delate.
第二个回滚命令重放了延迟。
E) the first rollback command restores the 101 rows that were delete and commits the inserted row.
第一个回滚命令恢复被删除的101行,并提交插入的行。

36 examine the description of the bricks table:
检查砖桌的描述:
which two queries execute successfully?
哪两个查询成功执行?
B) select shape, color from bricks minus selelct color, shape from bricks-stage;
D) select bricks_id, shape from bricks minus select weight, color from bricks_stage;

37 不确定答案

38 examine the decription of the employees table:
检验员工表的表述:

which two queries return all rows for employees whose salary is greater than the average salary in thelr department?
哪两个查询返回工资大于该部门平均工资的员工的所有行?
A) select * from employees e1 where salary > ( select avg(salary) from amployees e2
where e1.department_id = e2.department_id );
D) select * from (select e*, avg(salary) over ( partition by department_id) avg_sal
from employees e) where salary > avg_sal;

OCP12C题库,71sql的使用相关推荐

  1. OCP12C题库,62数据库备份与恢复(admin,install and upgrade accelerated, backup and recovery workshop -62)(新增)

    题数:20+53 10月新增 5 examine the details of the uncompressed,non-partitioned heap table cities. 检查未压缩.未分 ...

  2. OCP12C题库,63数据库管理( Administration Workshop- 63)(新增)

    题数:13+12 8 月 新增63题库: 01 which thre statements are true about unlugging a pluggable database(PDB)? 关于 ...

  3. 2017年全国计算机一级选择题,2017年全国计算机一级选择题题库

    2017年全国计算机一级选择题题库 电子器件是计算机系统的物质基,计算机复杂逻辑的最基层线路为"与门"."或门"和"反相器".以下是yjby ...

  4. 计算机四级网络工程题库,2016计算机四级网络工程师题库

    2016计算机四级网络工程师题库 一.选择题 1. 以下关于OSPF协议技术特征的描述中,哪个是错误的? A.OSPF协议使用层次结构的区域划分 B.它将一个自治系统内部划分成若干区域与主干区域(ba ...

  5. 《Python程序设计》题库(2)

    侵权联系我删除: [写在这里,方便右键百度搜索!] <Python程序设计>题库 填空题 Python安装扩展库常用的是_______工具.(pip) Python标准库math中用来计算 ...

  6. Golang正则笔记 :使用正则表达式处理题库文本

    前言 由于企业内部的一些考试需要,有些同事要时常通过一个word格式的题库文件来查询相应题目,但在手机上用word进行查询,总觉得操作上很不方便.借着这个契机,应用Golang和Kotlin开发了一个 ...

  7. 信息系统监理师题库_信息系统监理题库

    信息系统监理题库app是专门针对信息系统监理师考试的应用软件,在这个应用软件中拥有着全面的考试大纲资源,同时还有着海量的历年真题以及模拟试题供用户进行学习.该软件会自动的为用户记录错题,便于用户可以对 ...

  8. 初级c 语言题库,c 语言题库.doc

    c 语言题库 9.2 填空题 9.117 下面程序段是把从终端读入的一行字符作为字符串放在字符数组中,然后输出,请分析程序填空. int i; char s[80],*p; for(i=0;i< ...

  9. php如何批量导入题库,批量文本导入试题

    批量文本导入试题,支持以纯文本方式添加试题,可以通过从Word文档等已有的电子试卷中,将题目复制粘贴到编辑器,快速生成试题并导入题库,大幅提高录题效率. 文本导入支持以下常规题型:单选.多选.判断.填 ...

最新文章

  1. 基于Metronic的Bootstrap开发框架经验总结(2)--列表分页处理和插件JSTree的使用...
  2. BZOJ[1713][Usaco2007 China]The Bovine Accordion and Banjo Orchestra 音乐会 二维斜率优化
  3. 轻松自动化---selenium-webdriver(python) (七)
  4. 利用学习率衰减找到最优结果(基于Iris数据集)
  5. OpenCASCADE:常用Inspector控件之树视图
  6. ae抠像插件_AE抠像背景残留去除
  7. mysql怎么返回上一行_月球上并没有发射基地,阿波罗飞船是怎么返回地球的?...
  8. 扩展 CommandField 类别 - Header 加入新增钮
  9. 当年年仅18岁韩寒舌战群儒,受尽冷嘲热讽!
  10. mysql面向对象例子_PHP 面向对象实例:获取数据库用户数据
  11. 4.线性和卷积——线性滤波器、非锐化掩蔽原理揭破_4
  12. html5之Fullscreen全屏API
  13. 正则表达式判断手机号和邮箱格式是否正确
  14. Mycat全局序列号失效的诡异事件
  15. 便笺Sticky note常用快捷键
  16. Tableau 桑基图
  17. weblogic BEA-000362问题
  18. MathorCup大数据竞赛-北京移动用户体验影响因素问题思考
  19. 如何让百度搜索收录自己的Hexo博客文章
  20. 计算机原理综合设计,《计算机组成原理综合设计报告》.doc

热门文章

  1. 限制内存用快排原理PHP
  2. 36条网络安全术语盘点——Vecloud
  3. HTTP错误 500.23-Internal Server Error 检测到在集成的托管管道模式下不适用的ASP.NET设置...
  4. 数位dp:Educational Codeforces Round 53 (Rated for Div. 2) E. Segment Sum
  5. 用webpack构建一个常规项目,好处和坏处分析
  6. 从移动端开发者的角度聊微软的困境和机会
  7. 数字证书管理工具keytool常用命令介绍
  8. Mac终端下打开sublime
  9. Java阻塞队列(BlockingQueue)实现 生产者/消费者 示例
  10. (转载)conflicting types for xx各种错误的总结