【2019年8月版】OCP 071认证考试原题-第39题「建议收藏」

【2019年8月版】OCP 071认证考试原题-第39题「建议收藏」Choose two Exanine the desatption of the BOOKS_TRANSACTIONS table Name Null? Type —————–…

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/10465.html

(0)
上一篇 2022-12-27
下一篇 2022-12-27

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注