SQL证书模拟考试

1.以下查询的结果是什么?

 SELECT ROUND(144.23,-1)FROM dual;

  1. 140

  2. 144

  3. 150

  4. 100

2.在下列哪种情况下,应指定括号?

  1. 当INTERSECT与其他集合运算符一起使用时

  2. 当UNION为与UNION ALL一起使用

  3. 当MINUS用于查询时

  4. 以上都不是

3.以下哪项是Oracle数据库中的DML命令?

  1. SELECT

  2. GROUP BY

  3. INTERSECT

  4. INSERT

4.编写查询以显示来自EMP表的员工详细信息(姓名,部门,薪资和工作).

  1.  SELECT ename,deptno,sal,job FROM emp;

  2.  SELECT * FROM emp;

  3.  SELECT DISTINCT ename,deptno,sal,job FROM emp;

  4.  SELECT ename,deptno,sal FROM emp;

5.以下是不同类型的观点?

  1. 简单观点

  2. 复杂观点

  3. A和B

  4. 以上都不是

6. SET运算符是什么?

  1. SELECT子句应具有相同的列数,数据类型可以不同

  2. SET运算符只能用于组合两个查询

  3. 第二个查询中每列的数据类型必须与第一个查询中相应列的数据类型匹配.

  4. 无以上

7.以下哪些多行运算符可用于子查询?

  1. IN

  2. ANY

  3. 所有

  4. 以上所有

8.什么时候可以创建表?

  1. 当数据库没有被任何用户使用时

  2. 新创建数据库时

  3. 即使用户使用数据库,也可以随时创建

  4. 以上都不是

9.以下哪项是将行插入表中的常用技巧? (选择最明智和恰当的答案)

  1. 使用SELECT子句

  2. 在INSERT子句中手动输入每个值

  3. 使用SET运算符

  4. 以上都不是

10.关于视图,以下哪些是正确的?

  1. 子查询可以嵌入到CREATE VIEW语句

  2. CREATE VIEW语句中使用的子查询必须具有简单的SELECT语法

  3. 您不能在一个中使用WHERE子句在CREATE VIEW语句中使用它时的子查询

  4. 以上都不是

11 .在SQL * Plus中执行以下语句时预测输出?

 DESC emp

  1. 引发错误"SP2-0042:未知命令"desc emp" - 其余行被忽略."

  2. 列出EMP表的列

  3. 列出EMP表列,它们的数据类型和无效

  4. 列出EMP表的列及其数据类型

12.下面给出的查询的结果是什么?

 SELECT 100 + NULL + 999 FROM dual;

  1. 100

  2. 999

  3. NULL

  4. 1099

13.对于给定的查询,如果使用的JOIN被NATURAL JOIN替换,则会抛出错误.这个错误的原因是什么?

  1. 当使用NATURAL JOIN时,WHERE子句是强制性的,省略,给出错误

  2. ON子句应替换为USING子句

  3. 单词NATURAL,JOIN和USING在相同的连接子句的上下文中是互斥的.

  4. 查询在加入时不能组合NATURAL JOIN和ON(或USING)子句.

14.以下哪种语法模型广泛用于全球软件系统?

  1. ANSI SQL:1999

  2. 传统的Oracle语法和ANSI SQL: 1999语法

  3. 传统的Oracle语法

  4. 所有选项

15.与共同相关的子查询有什么关系?

  1. 表格在主查询中使用的也用于共同相关的子查询

  2. 引用主查询中使用的列的子查询称为共同相关的子查询

  3. 没有括号的子查询被称为共同相关的子查询

  4. 强制使用不同于表中的表的子查询主查询称为共同相关的子查询

16.您发出UPDATE语句,如下所示:

 UPDATE employees 
 SET employee_id = NULL; 
 WHERE job_id ='CLERK';

上述声明的结果如何? (此处EMPLOYEE_ID列通过设置约束标记为必需)

  1. 数据集的第一列将获取更新为NULL

  2. 第一行的第3列将更新为NULL

  3. 所有行的第3列将更新为NULL

  4. 并且会抛出ORA错误

17.对于给出的查询是什么情况以上?

  1. 由于强制WHERE子句不存在,因此出现ORA错误

  2. JOIN..ON子句不能包含多个条件

  3. 查询忽略最后一个条件并在没有ORA错误的情况下执行

  4. JOIN..ON子句可以用上面给出的形式写成,以便提供更多条件.

18.请考虑以下查询.

 SELECT e.job_id,e.first_name,d.department_id 
 FROM departments D JOIN employees e JOIN BONUS b 
 USING(job_id);

此查询会导致错误.错误的原因是什么?

  1. 一次只能在两个表之间进行JOINOUSING

  2. 查询中的USING子句没有来自部门的任何列

  3. 查询中没有WHERE子句

  4. 以上所有

19.预测以下查询的输出

 SELECT 50 || 0001 
 FROM dual

  1. 500001

  2. 51

  3. 501

  4. 5001

20.您创建一个表并将其命名为COUNT. CREATE TABLE脚本的结果是什么?

  1. 不会创建表格

  2. 该表格将被创建,下划线将自动添加到名称COUNT _

  3. 将抛出ORA错误

  4. 将创建COUNT表而不会出现任何错误

21.以下查询的结果是什么?

 SELECT * 
 FROM employees 
 WHERE salary BETWEEN(SELECT max(salary)
 FROM employees 
 WHERE department_id = 100)
 AND(SELECT min(salary)FROM employees,department_id = 100);

此查询返回错误.错误的原因是什么?

  1. 应该使用GROUP BY子句作为函数MAX使用

  2. 两个子查询都不能在同一外部查询中使用相同的部门ID

  3. BETWEEN运算符不能与子查询一起使用

  4. SELECT子句应该提到列而不是星号(*)

22.以下哪项不是函数的属性?

  1. 执行数据计算

  2. 转换列数据类型

  3. 修改单个数据项

  4. 以上都不是

23.对于Oracle DB中的INNER JOINS和OUTER JOINS,情况如何?

  1. INNER JOIN仅返回匹配的行

  2. OUTER JOIN仅返回不匹配的行

  3. OUTER JOIN返回匹配的行以及不匹配的行

  4. 以上都不是

24.即使基表不存在,下列哪一项也可以创建视图?

  1. NOFORCE

  2. FORCE

  3. OR REPLACE

  4. 创建视图

25. Oracle支持以下哪种ANSI SQL:1999连接语法连接?

  1. 笛卡儿产品

  2. 自然联接

  3. 完整的外部加入

  4. Equijoins

26.以下是创建表的先决条件?

  1. CREATE TABLE权限

  2. 存储空间

  3. 表格中的数据

  4. 以上都不是

27.创建表的语法是什么?

  1. CREATE TABLE [schema.] table(column数据类型[DEFAULT expr] [,..]);

  2. CREATE TABLE INTO [schema.] table(列数据类型[DEFAULT expr] [,..]);

  3. CREATE TABLE VALUES [schema.] table(列数据类型[DEFAULT expr] [,..]);

  4. 以上都不是

28.你需要显示EMPLOYEES表中的所有不匹配行和DEPARTMENT表中的不匹配行,而不显示它们之间的行的笛卡尔积.以下哪个查询会提供所需的输出?

  1.  SELECT * 
     FROM employees e,department d 
     WHERE e.department_id = d.department_id;

  2.  SELECT * 
     FROM employees e NATURAL JOIN department d;

  3.  SELECT * 
     FROM employees e FULL OUTER JOIN department d 
     ON e.department_id = d.department_id;

  4.  SELECT * 
     FROM employees e JOIN department d 
     ON(e .department_id> d.department_id);

29.下面哪个以下的字母数字字符用于表示SQL中的连接运算符?

  1. +

  2. ||

  3. -

  4. ::

30.鉴于它们具有相同的优先级,改变SET运算符优先级的最佳方法是什么?

  1. 可以更改SET运算符的使用顺序以更改优先级

  2. 无法更改相同的优先级

  3. 括号可用于更改优先级

  4. 以上都不是

31.此查询的结果会显示什么?

  1. 它会显示不同的在员工和部门表中共同包含的部门ID

  2. 它会抛出ORA错误

  3. 没有选择行

  4. 以上都不是

32.以下哪个命令确保不能对视图执行DML操作?

  1. NOFORCE

  2. FORCE

  3. WITH READ ONLY

  4. OR REPLACE

33. CREATE VIEW语句中的NOFORCE选项有什么用?

  1. 即使创建了一个视图基表不存在.

  2. 仅当基表存在时才创建视图.

  3. 这是默认值创建视图时.

  4. 以上都不是

34. OR REPLACE关键字的真实情况是什么?

  1. 创建视图时会丢失对象权限使用此关键字

  2. 无需重新授予之前授予的对象权限

  3. A均不是也不是B

  4. 以上所有

35.以下是一种Oracle SQL函数?

  1. 多行函数

  2. 单列函数

  3. 单值函数

  4. 多列函数

36.以下是一种单行函数?

  1. VARCHAR2

  2. 字符

  3. LONG

  4. NULLIF

37.多行函数最合适的是什么?

  1. 它们每行返回多个值.  

  2. 他们为每组行返回一个结果并可以操作行组. 

  3. 他们每行返回一个结果并可以操作行组. 

  4. 它们会为每组行返回多个值.

38 .以下哪项也称为组功能?

  1. 单行功能

  2. 多组功能

  3. 多行功能

  4. 单组功能.

39.表T_COUNT具有12个数值,分别为1,2,3,32,1,1,null,24,12,null,32,null.预测以下查询的输出.

 SELECT COUNT(*)FROM t_count;

  1. 12

  2. 6

  3. 9

  4. 引发异常,因为COUNT函数不适用于NULL值

40.选择创建表时必须指定的元素.

  1. 列名

  2. 列数据类型

  3. 列大小

  4. 以上所有

41.关于上面给出的陈述可以说什么呢?

  1. 为视图提供了替代名称

  2. 如果任何列来自函数或表达式,则必须提供替代名称

  3. A和B

  4. 以上所有

42.表T_COUNT具有12个数值,分别为1,2,3,32,1,1,null,24,12,null,32,null.预测以下查询的输出.

 SELECT COUNT(num)FROM t_count;

  1. 12

  2. 6

  3. 9

  4. 引发异常,因为COUNT函数不适用于NULL值

43.您需要仅为部门100和101查找上述查询获得的结果.应将以下哪些条款添加/修改为上述查询?

  1. ON(e.department_id = d.department_id)应添加

  2. USING(e.department_id)应该添加

  3. 应该添加(100,101)中的e.department_id

  4. 以上都不是

44.以下哪项不是SQL中的GROUP BY扩展?

  1. GROUP BY

  2. GROUPING SETS

  3. CUBE

  4. ROLLUP

45.如果上述声明修改如下,会发生什么?

CREATE OR REPLACE VIEW dept_sum_vu(name, maxsal, minsal, avgsal)
AS 
SELECT d.dept_name, MIN(e.salary), MAX(e.salary), AVG (e.salary)
FROM employees e JOIN departments d 
ON (e.department_id= d.dept_id)
GROUP BY d.dept_name;

  1. 它与原始声明
    没有什么不同

  2. 它将成功执行,给出相同的结果,但更改别名.

  3. 它会抛出一个ORA错误

  4. 以上都不是

46.关于DELETE语句,以下哪些是正确的?

  1. DELETE语句必须伴随通过WHERE子句

  2. 使用DELETE语句编写WHERE子句不是必须的

  3. DELETE一次可以从多个表中删除数据

  4. 以上都不是

47.假设员工的姓氏在表员工中处于适当的情况,以下查询的结果是什么?

 SELECT employee_id ,last_name,department_id FROM employees WHERE last_name ='smith';

  1. 它将显示详细信息姓氏为史密斯的员工

  2. 没有结果.

  3. 它会给出姓氏为'的员工的详细信息所有小写字母中的史密斯.

  4. 它将在所有INITCAP案例中提供姓氏为"史密斯"的员工的详细信息.

48.当我们在表上发出DELETE语句时,会发生以下哪种情况? (选择最合适的答案)

  1. 弹出提示,询问用户他/她是否确定要删除所请求的行

  2. 立即删除遵守DELETE语句中给出的条件的行

  3. 请求的行是立即删除,没有任何提示.

  4. 以上都不是

49.这是真的上面给出的查询?

  1. 此查询返回ORA错误

  2. 它成功执行但没有给出结果

  3. 来自不同表的查询不能与SET运算符一起使用

  4. 查询成功执行并给出结果如预期的那样

50.如果在上述查询中为&N变量提供了值,那么会发生什么?(问题76中的选项C)与任何行不匹配? (选择最佳答案)

  1. 该语句会引发ORA错误

  2. 该语句将返回表中的所有行

  3. 该语句将返回NULL作为输出结果.

  4. 语句将在结果中不返回任何行.

51.使用UNION ALL运算符时结果的默认排序顺序是什么?

  1. 降序

  2. 升序

  3. A或B

  4. 以上所有

52.表T_COUNT具有12个数值,分别为1,2,3,32,1,1,null,24,12,null,32,null.预测以下查询的输出.

 SELECT COUNT(ALL num)FROM t_count;

  1. 12

  2. 6

  3. 9

  4. 引发异常,因为COUNT函数不适用于NULL值

53.什么是Sub的最高级别 - 查询可以嵌套吗?

  1. 255

  2. 100

  3. 2

  4. 16

54.表T_COUNT具有12个数值,分别为1,2,3,32,1,1,null,24,12,null,32,null.预测以下查询的输出.

 SELECT COUNT(DISTINCT num)FROM t_count;

  1. 12

  2. 6

  3. 9

  4. 引发异常,因为COUNT函数不适用于NULL值

55.以下是关于SQL中VARIANCE函数的一些陈述.

i.该函数接受多个数字输入并返回所有值的方差

ii.该函数接受一个数字列并返回所有列值的方差,包括NULL

iii.该函数接受一个数字列并返回除NULL以外的所有列值的方差

从以下选项中选择正确的组合.

  1. i and iii

  2. i and ii

  3. ii

  4. iii

56.哪个子句用于根据使用按功能分组的聚合结果过滤查询输出?

  1. WHERE

  2. LIMIT

  3. GROUP WHERE

  4. HAVING

57.名为"Kevin"的用户想要访问另一个名为"Jonathan"的用户所拥有的表.以下哪项适用于Kevin?

  1. 从Kevin.employees中选择*;

  2. 从jonathan.employees中选择*;

  3. A或B中的任何一个

  4. 以上都不是

58.用于子查询的ALL运算符是什么? (选择最合适的答案.)

  1. 返回与列表中所有值匹配的行/sub-query

  2. 返回仅与列表/子查询中的某些值匹配的行

  3. 仅当所有值匹配时才返回行list/sub-query

  4. 以上所有

59.假设您在上述问题中使用的视图查询中选择了DISTINCT部门和员工工资.如果您尝试从视图dept_sum_vu中删除行,结果会是什么?

  1. 行将被删除而不会出现任何错误

  2. 只会删除前10行

  3. 无法删除行.

  4. 以上都不是

60.会发生什么如果复合查询的SELECT列表同时返回VARCHAR2和NUMBER数据类型结果?

  1. Oracle将隐式转换它们并返回VARCHAR2数据类型结果

  2. Oracle将隐式转换它们并返回NUMBER数据类型结果

  3. ORA错误被抛出

  4. 以上都不是

61.模式的真实情况是什么?

  1. 模式由数据库用户拥有并具有与该用户同名

  2. 每个用户拥有一个架构

  3. 架构对象包括数据库链接

  4. 全部以上

62.对于上面的INSERT语句,将以哪种顺序插入值?

  1. Location_id, manager_id,department_name,department_id

  2. department_id,department_name,manager_id,location_id

  3. department_id,manager_id,department_name,location_id

  4. department_id,department_name,location_id,manager_id

63.关于表格,以下哪些是正确的?

  1. 给表的默认值

  2. 在INSERT语句期间可以为表的一列提供默认值

  3. A或B中的任何一个

  4. 以上都不是

65.以下哪个SQL查询将显示员工姓名,部门和年薪?

  1.  SELECT ename,deptno,sal FROM emp;

  2.  SELECT ename,deptno,sal + comm FROM emp;

  3.  SELECT ename,deptno,(sal * 12)Annual_Sal FROM emp;

  4. 由于表中不存在列,因此无法查询年薪

66. Oracle DB中的SUBSTR函数有什么用?

  1. 它提取一个确定长度的字符串

  2. 它将字符串的长度显示为数值

  3. 它找到命名字符的数字位置

  4. 从一个(或两个)边修剪字符串中的字符

67.以下哪个SELECT语句列出最高家庭类别中所有图书的零售价格?

  1.  SELECT MAX(零售)FROM books WHERE category ='FAMILY';

  2.  SELECT MAX(零售)FROM books HAVING category ='FAMILY';

  3.  SELECT retail FROM books WHERE category ='FAMILY'HAVING MAX(零售);

  4. 以上都不是

68.可以使用以下哪些函数在计算中包含NULL值?

  1. SUM

  2. NVL

  3. MAX

  4. MIN

69.哪些陈述最能说明从问题34和35中得出的推论?

  1. 作业代码有重复值

  2. 查询执行但生成的结果是意外的

  3. 部门没有重复值

  4. 以上都不是

70.以下查询的结果是什么?

 SELECT length('hi')FROM dual;

  1. 2

  2. 3

  3. 1

  4. hi

答案:

答案(1):A. ROUND函数将根据指定的精度-1舍入值144.23并返回140.

检查结构给出的EMPLOYEES表并回答下面的问题2和.

SQL> DESC employees
 Name			 Null?	  Type
 ----------------------- -------- ----------------
 EMPLOYEE_ID		 NOT NULL NUMBER(6)
 FIRST_NAME			  VARCHAR2(20)
 LAST_NAME		 NOT NULL VARCHAR2(25)
 EMAIL			 NOT NULL VARCHAR2(25)
 PHONE_NUMBER			  VARCHAR2(20)
 HIRE_DATE		 NOT NULL DATE
 JOB_ID 		 NOT NULL VARCHAR2(10)
 SALARY 			  NUMBER(8,2)
 COMMISSION_PCT 		  NUMBER(2,2)
 MANAGER_ID			  NUMBER(6)
 DEPARTMENT_ID			  NUMBER(4)

答案(2):A.使用括号将明确更改当INTERSECT与其他运营商一起使用时的评估顺序.

答案(3):A,D.严格来说,SELECT是DML命令,因为它是操纵表格中数据的强制性条款之一.

答案(4):A.从表格中选择所需的每个表格,每个表格用$ b分隔$ b逗号.

答案(5):C.简单和复杂视图是两种类型的视图.
简单视图基于仅引用一个表的子查询,不包括组
函数,表达式或GROUP BY子句.复杂视图基于子查询,
从一个或多个表中检索或派生数据,并且可以包含函数或分组数据.

答案(6):C. 所有组合应该具有相同的号码.使用SET运算符时列
构成复合
查询的查询中的相应列必须属于同一数据类型组.

答案:(7)D.多行子查询返回多行结果.
可以与多行子查询一起使用的操作符包括IN,ALL,ANY和EXISTS.

答案(8):C.可以创建索引以加快查询过程.
当索引存在时,DML操作总是较慢. Oracle 11g自动为PRIMARY
KEY和UNIQUE约束创建索引.使用CREATE INDEX
命令创建显式索引.如果查询条件或排序
操作基于用于创建索引的列或表达式,则Oracle 11g可以自动使用索引.

答案( 9):A.使用SELECT子句是将行插入表中最常用的技术
.它减少了为每个
列手动键入值的工作量.

答案(10):A.查看定义可以使用子查询.

答案(11):C. DESCRIBE用于显示
表格结构,表格列,数据类型和空值

答案(12):C.任何带NULL的算术运算都会产生NULL.

答案( )13:C,D.

答案(14):C. ANSI SQL:1999语法虽然没有使用多达
是传统的Oracle语法,它仍然是可以在Oracle SQL中使用的语法之一

答案(15):B.相关子查询引用a外部查询中的列,并为外部查询中的每一行执行一次子查询,而Uncorrelated子查询首先执行子查询并将值传递给外部查询.

答案(16) ):D.在更新其值时必须遵守对列的约束.在给定的UPDATE语句中,将抛出错误,因为
EMPLOYEE_ID列是EMPLOYEES表中的主键,这意味着它不能为NULL.

答案(17 ): D. The WHERE clause can be omitted and the relevant conditions can be accommodated in the JOIN..ON clause itself as shown in the given query

Answer (18): A. Table1 JOIN table2 JOIN table3 is not allowed without the ON clauses for between each JOIN

Answer(19): C. The leading zeroes in the right operand of expression are ignored by Oracle.

Answer(20): A, C. You cannot create a table with the name same as an Oracle Server reserved word.

Answer(21): C. The BETWEEN operator can be used within a sub-query but not with a sub-query.

Answer(22): D. Functions can perform calculations, perform case conversions and type conversions.

Answer(23): A, C. A join can be an inner join,in which the only records returned have a matching record in all tables,or an outer join, in which records can be returned regardless of whether there’s a matching record in the join.An outer join is created when records need to be included in the results without having corresponding records in the join tables. These records are matched with NULL records so that they’re included in the output.

Answer(24): B. Ff you include the FORCE keyword in the CREATE clause, Oracle 11g creates the view in spite of the absence of any referenced tables. NOFORCE is the default mode for the CREATE VIEW command, which means all tables and columns must be valid, or the view isn’t created.

Answer(25): D.

Answer(26): A, B. A user must possess the CREATE TABLE privilege and must have sufficient space to allocate the initial extent to the table segment.

Answer(27): A.

Answer(28): C. The FULL OUTER JOIN returns the non-matched rows from both the tables. A full outer join includes all records from both tables, even if no corresponding record in the other table is found.

Answer(29): B.In SQL, concatenation operator is represented by two vertical bars (||).

Answer(30): C. Parenthesis can be used to group the specific queries in order to change the precedence explicitly. Parentheses are preferred over other SET operators during execution.

Answer(31): A. UNION Returns the combined rows from two queries, sorting them and removing duplicates.

Answer(32): C. The WITH READ ONLY option prevents performing any DML operations on the view. This option is used often when it’s important that users can only query data, not make any changes to it.

Answer(33): B, C. NOFORCE is the default mode for the CREATE VIEW command, which means all tables and columns must be valid, or the view isn’t created.

Answer(34): B. The OR REPLACE option notifies Oracle 11g that a view with the same name might already exist; if it does, the view’s previous version should be replaced with the one defined in the new command.

Answer(35): A. There are basically two types of functions - Single row and Multiple row functions.

Answer(36): B. Character, Date, Conversion, General, Number are the types of Single row functions.

Answer(37): B. Multiple Row functions always work on a group of rows and return one value per group of rows.

Answer(38): C. Group functions are same as Multi row functions and aggregate functions.

Answer(39): A. The COUNT(*) counts the number of rows including duplicates and NULLs. Use DISTINCT and ALL keyword to restrict duplicate and  
NULL values.

Answer(40): D. A table must have atleasr one column, its data type specification, and precision (if required).

Answer(41): C. Specifying alias name is good practice to improve the readability of the code and the view queries.

Answer(42): C. COUNT (column) ignores the NULL values but counts the duplicates.

Answer(43): C. The NATURAL JOIN clause implicitly matches all the identical named columns. To add additional conditions the WHERE clause can be used.

Answer(44): A. GROUPING SETS operations can be used to perform multiple GROUP BY aggregations with a single query.

Answer(45): B. The sequence of the column alias not matters much as they don’t carry any behavioral attribute.

Answer(46):  B. The WHERE clause predicate is optional in DELETE statement. If the WHERE clause is omitted, all the rows of the table will be deleted.

Answer(47): B. Provided the last names in the employees table are in a proper case, the condition WHERE last_name = ’smith’ will not be satistified and hence no results will be displayed.

Answer(48):  C. As a part of the active or a new transaction, the rows in the table will be deleted.

Answer(49): D. A compound query is one query made up of several queries using different tables.

Answer(50): D.

Answer(51): B. A compound query will by default return rows sorted across all the columns,from left to right in ascending order.The only exception is UNION ALL, where the rows will not be sorted. The only place where an ORDER BY clause is permitted is at the end of the compound query.

Answer(52): C. COUNT(ALL column) ignores the NULL values but counts the duplicates.

Answer(53): A.

Answer(54): B. COUNT (DISTINCT column) counts the distinct not null values.

Answer(55): C. The VARIANCE function accepts single numeric argument as the column name and returns variance of all the column values considering  
NULLs.

Answer(56): D. HAVING Clause is used for restricting group results. You use the HAVING clause to specify the groups that are to be displayed, thus further restricting the groups on the basis of aggregate information. The HAVING clause can precede the GROUP BY clause, but it is recommended that you place the GROUP BY clause first because it is more logical. Groups are formed and group functions are calculated before the HAVING clause is applied to the groups in the SELECT list.

Answer(57): B.

Answer(58): C. ’> ALL’ More than the highest value returned by the subquery. ’<ALL’ Less than the lowest value returned by the subquery. ’

Answer(59): C. The view DEPT_SUM_VU is still a complex view as it uses DISTINCT keyword. Hence, DML operations are not possible on it.

Answer(60): C. Oracle does not convert data types implicitly.

Answer(61): D. The user space in a database is known as schema. A schema contains the objects which are owned or accessed by the user. Each user can have single schema of its own.

Answer(62): B. If the columns are mentioned in the INSERT clause, the VALUES keyword should contain values in the same order

Answer(63): B. A default value can be specified for a column during the definition using the keyword DEFAULT.

Answer(65): C. Use numeric expressions in SELECT statement to perform basic arithmetic calculations.

Answer(66): A. The SUBSTR(string, x, y) function accepts three parameters and returns a string consisting of the number of characters extracted from the source string, beginning at the specified start position (x). When position is positive, then the function counts from the beginning of string to find the first character. When position is negative, then the function counts backward from the end of string.

Answer(67): A. Since the category FAMILY has to be restricted before grouping, table rows must be filtered using WHERE clause and not HAVING clause.

Answer(68): B. NVL is a general function to provide alternate values to the NULL values. It can really make a difference in arithmetic calculations using AVG, STDDEV and VARIANCE group functions.

Answer(69): C. As the combination of the job codes and departments is unique, there are no duplicates obtained.

Answer(70): A. the LENGTH function simply gives the length of the string.