071考試不僅是OCP11g的考試科目,同時也是OCP 12c的考試科目,所以關(guān)心071考題的同學(xué)有很多,對此我們專門收集整理了近期071考試的原題,并對這些考題進(jìn)行講解,希望幫助廣大考生順利通過071考試。
--------------------------------------------
071考題解析-第65題、choose the best answer:
The CUSTOMERS table has the following structure:
You need to write a query that does the following tasks:
1. Display the first name and tax amount of the customers. Tax is 5% of their credit limit.
2. Only those customers whose income level has a value should be considered.
3. Customers whose tax amount is null should not be considered.
Which statement accomplishes all the required tasks?
A) SELECT cust_first_name, cust_credit_limit * .05 AS TAX_AMOUNT
FROM customers
WHERE (cust_income_level,tax_amount) IS NOT NULL;
B) SELECT cust_first_name, cust_credit_limit * .05 AS TAX_AMOUNT
FROM customers
WHERE cust_income_level IS NOT NULL AND
cust_credit_limit IS NOT NULL;
C) SELECT cust_first_name, cust_credit_limit * .05 AS TAX_AMOUNT
FROM customers
WHERE cust_income_level <> NULL AND
tax_amount <> NULL;
D) SELECT cust_first_name, cust_credit_limit * .05 AS TAX_AMOUNT
FROM customers
WHERE cust_income_level IS NOT NULL AND
tax_amount IS NOT NULL;
Answer:B
(解析:條件語句中不能用別名當(dāng)做條件,該題的題意是稅額不能為 0,所以只要 cust_credit_limit 不為 0,則保證稅額不會為 0
-----------------------------------------------
OCP解析公開課時間:【每周五晚8點】
OCP解析公開課地址:https://ke.qq.com/course/326223
OCP解析群資料分享:1015267481 驗證:ocp
另外,除了OCP公開課,OCM題庫直播也同步進(jìn)行中,OCM最新題庫大爆料-【每周四晚8點】,【微信群直播】,可以聯(lián)系咨詢老師進(jìn)群參與