Chinaunix首页 | 论坛 | 博客
  • 博客访问: 674314
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4936
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2024年(2)

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-12-16 13:26:53

Choose two

Exanine the desatption of the BOOKS_TRANSACTIONS table

Name Null? Type

----------------------------------------------------------------------------------------------

TRANSACTION_ID     NOT NULL  VARCHAR2(6)

TRANSACTION_TYPE                    VARCHAR2(3)

BORROWED_DATE                        DATE

BOOK_ID                                      ARCHAR2(6)

MEMBER_ID                                 VARCHAR2(6)

Examine this partial SQL statement:

SELECT * FROM books_transctions;

Which two WHERE condtions give the same resut?

A) WHERE borrowed_date = SYSDATE AND (transaction_type= 'RM' OR member_id IN

('A101','A102' ) );

B) WHERE borrowed_date = SYSDATE AND transaction_type= 'RM' OR member_id IN

('A101','A102' ) ;

C) WHERE borrowed_date = SYSDATE AND (transaction_type= 'RM' AND member_id='A101' OR

member_id = 'A102') );

D) WHERE (borrowed_date = SYSDATE AND transaction_type= 'RM' ) OR member_id IN

('A101','A102' );

E) WHERE borrowed_date = SYSDATE AND (transaction_type= 'RM' AND ( member_id= 'A101' OR

member_id = 'A102' ) );

Answer::BD

(解析:考的是 and 和 or 的优先级。)

阅读(1352) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~