码迷,mamicode.com
首页 > 其他好文 > 详细

【2019年8月版】OCP 071认证考试原题-第39题

时间:2019-12-16 16:13:07      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:atp   row   select   res   des   sysdate   mem   nsa   har   

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 的优先级。)

【2019年8月版】OCP 071认证考试原题-第39题

标签:atp   row   select   res   des   sysdate   mem   nsa   har   

原文地址:https://blog.51cto.com/13854012/2458873

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!