百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 优雅编程 > 正文

Oracle Database 12c SQL OCA/OCP 1Z0-071题库(31-35题)

sinye56 2024-09-16 14:35 6 浏览 0 评论

QUESTION 31

Which three statements are true regarding subqueries? (Choose three.)

A. Multiple columns or expressions can be compared between the main query and subquery.

B. Subqueries can contain ORDER BY but not the GROUP BY clause.

C. Main query and subquery can get data from different tables.

D. Subqueries can contain GROUP BY and ORDER BY clauses.

E. Main query and subquery must get data from the same tables.

F. Only one column or expression can be compared between the main query and subquery.

答案:ACD

解析:父查询和子查询可以查询不同的表,其他参见24题解析。

QUESTION 32

Which statement is true regarding the default behavior of the ORDER BY clause?

A. In a character sort, the values are case-sensitive.

B. NULL values are not considered at all by the sort operation.

C. Only those columns that are specified in the SELECT list can be used in the ORDER BY clause.

D. Numeric values are displayed from the maximum to the minimum value if they have decimal positions.

答案:A

解析:ORDER BY:排序大小写敏感,大写小于小写;NULL大于一切值;ORDER BY的列或表达式可以不是SELECT选择的列;默认升序。(可参见21题)

QUESTION 33

Examine the structure of the MEMBERS table.

Name                          NULL?                 Type
------------------              --------------         ----------------
MEMBER                     NOT NULL           VARCHAR2(6)
FIRST_NAME                                           VARCHAR2(50)
LAST_NAME                NOT NULL           VARCHAR2(50)
ADDREDD                                               VARCHAR2(50)          
CITY                                                        VARCHAR2(25)      
STATE                          NOT NULL         VARCHAR2(3)

Which query can be used to display the last names and city names only for members from the states MO and MI?

A. SELECT last_name, city FROM members WHERE state ='MO' AND state ='MI';
B. SELECT last_name, city FROM members WHERE state LIKE 'M%';
C. SELECT last_name, city FROM members WHERE state IN ('MO', 'MI');
D. SELECT DISTINCT last_name, city FROM members WHERE state ='MO' OR state ='MI';

答案:C

QUESTION 34

Which statement is true about an inner join specified in a query’s WHERE clause?

A. It only applies for equijoin conditions.

B. It applies for equijoin and nonequijoin conditions.

C. It requires column names to be the same in all tables being joined.

D. It must have primary-key and foreign-key constraints defined on the join columns.

答案:B

QUESTION 35

Which task can be performed by using a single Data Manipulation Language (DML) statement?

A. adding a column constraint while inserting a row into a table

B. adding a column with a default value while inserting a row into a table

C. removing all data only from a single column on which a unique constraint is defined

D. removing all data only from a single column on which a primary key constraint is defined

答案:C

解析:UNIQUE对删除数据无限制。


后续陆续更新,转载请注明出处。

本人水平有限,欢迎指正。

相关推荐

Linux在线安装JDK1.8

首先在服务器pingwww.baidu.com查看是否可以连网然后就可以在线下载一、下载安装JDK1.81、在下载安装的同时做好一些准备工作...

Linux安装JDK,超详细

1、了解RPMRPM是Red-HatPackageManager(RPM软件包管理器)的缩写,这一文件格式名称虽然打上了RedHat的标志,但是其原始设计理念是开放式的,现在包括OpenLinux...

Linux安装jdk1.8(超级详细)

前言最近刚购买了一台阿里云的服务器准备要搭建一个网站,正好将网站的一个完整搭建过程分享给大家!#一、下载jdk1.8首先我们需要去下载linux版本的jdk1.8安装包,我们有两种方式去下载安装...

Linux系统安装JDK教程

下载jdk-8u151-linux-x64.tar.gz下载地址:https://www.oracle.com/technetwork/java/javase/downloads/index.ht...

干货|JDK下载安装与环境变量配置图文教程「超详细」

1.JDK介绍1.1什么是JDK?SUN公司提供了一套Java开发环境,简称JDK(JavaDevelopmentKit),它是整个Java的核心,其中包括Java编译器、Java运行工具、Jav...

Linux下安装jdk1.8

一、安装环境操作系统:CentOSLinuxrelease7.6.1810(Core)JDK版本:1.8二、安装步骤1.下载安装包...

Linux上安装JDK

以CentOS为例。检查是否已安装过jdk。yumlist--installed|grepjdk或者...

Linux系统的一些常用目录以及介绍

根目录(/):“/”目录也称为根目录,位于Linux文件系统目录结构的顶层。在很多系统中,“/”目录是系统中的唯一分区。如果还有其他分区,必须挂载到“/”目录下某个位置。整个目录结构呈树形结构,因此也...

Linux系统目录结构

一、系统目录结构几乎所有的计算机操作系统都是使用目录结构组织文件。具体来说就是在一个目录中存放子目录和文件,而在子目录中又会进一步存放子目录和文件,以此类推形成一个树状的文件结构,由于其结构很像一棵树...

Linux文件查找

在Linux下通常find不很常用的,因为速度慢(find是直接查找硬盘),通常我们都是先使用whereis或者是locate来检查,如果真的找不到了,才以find来搜寻。为什么...

嵌入式linux基本操作之查找文件

对于很多初学者来说都习惯用windows操作系统,对于这个系统来说查找一个文件简直不在话下。而学习嵌入式开发行业之后,发现所用到的是嵌入式Linux操作系统,本想着跟windows类似,结果在操作的时...

linux系统查看软件安装目录的方法

linux系统下怎么查看软件安装的目录?方法1:whereis软件名以查询nginx为例子...

Linux下如何对目录中的文件进行统计

统计目录中的文件数量...

Linux常见文件目录管理命令

touch用于创建空白文件touch文件名称mkdir用于创建空白目录还可以通过参数-p创建递归的目录...

Linux常用查找文件方法总结

一、前言Linux系统提供了多种查找文件的命令,而且每种查找命令都具有其独特的优势,下面详细总结一下常用的几个Linux查找命令。二、which命令查找类型:二进制文件;...

取消回复欢迎 发表评论: