【OCP 071】最新OCP 12c題庫考試原題(071-61題)
最新學(xué)訊:近期OCP認(rèn)證正在報名中,因考試人員較多請盡快報名獲取最近考試時間,報名費(fèi)用請聯(lián)系在線老師,甲骨文官方認(rèn)證,報名從速!
我要咨詢2018年OCP 11g考試原題解析已經(jīng)講解30多次課,500多道考試原題,最終達(dá)到98%以上的考題覆蓋度及95%以上的考試通過率。
2019年OCP 11g將升級到12c,OCP 12c考試解析免費(fèi)公開課也已經(jīng)開始了,歡迎大家收看!
OCP解析公開課時間:【每周五晚8點】
OCP解析公開課地址:http://ke.qq.com/course/326223
OCP解析群資料分享:1015267481 驗證:ocp
另外,除了OCP公開課,OCM題庫直播也同步進(jìn)行中,OCM最新題庫大爆料-【每周四晚8點】,【微信群直播】,可以聯(lián)系咨詢老師進(jìn)群參與
-------------------------------------------------------
61、(18-6) choose the best answer:
View the Exhibit and examine the structure of the CUSTOMERS table.
You want to generate a report showing the last names and credit limits of all customers whose last names start with A, B, or C, and credit limit is below 10,000.
Evaluate the following two queries:
SQL> SELECT cust_last_name, cust_credit_limit FROM customers
WHERE (UPPER(cust_last_name) LIKE 'A%' OR
UPPER(cust_last_name) LIKE 'B%' OR
UPPER(cust_last_name) LIKE 'C%')
AND cust_credit_limit < 10000;
SQL> SELECT cust_last_name, cust_credit_limit FROM customers
WHERE UPPER(cust_last_name) BETWEEN 'A' AND 'C'
AND cust_credit_limit < 10000;
Which statement is true regarding the execution of the above queries?
A) Only the second query gives the correct result.
B) Only the first query gives the correct result.
C) Both execute successfully but do not give the required result.
D) Both execute successfully and give the same result.
Answer:B
(解析:驗證結(jié)果發(fā)現(xiàn)第二 sql 語句不能返回 C 開頭的名字,如果改為 BETWEEN 'A' AND 'D',則查出來的結(jié)果與第一個語句一樣,而且語句簡潔,答案更好。
經(jīng)過測試發(fā)現(xiàn),如果數(shù)據(jù)類型是 number 的,則 between 800 and 3000 的結(jié)果包含 3000 的值:
SQL> select sal from emp where sal between 800 and 3000;
SAL
---------
800
1600)
1500
950
3000
但是如果是字符型的,則不包含between 'A' AND 'C'后面的 C :
SQL> select ename from emp where ename between 'A' AND 'C';
ENAME
----------
ALLEN
BLAKE
)
- 冉乃綱-老師CUUG金牌講師
- 冉老師 CUUG金牌講師 Oracle及RedHat高級講師、Unix/Linux 資深專家...[詳細(xì)了解老師]

- 陳衛(wèi)星-老師CUUG金牌講師
- 陳老師 CUUG金牌講師 精通Oracle管理、備份恢復(fù)、性能優(yōu)化 11年Ora...[詳細(xì)了解老師]
