【2019年8月版本】OCP 071认证考试最新版本的考试原题-第3题

choose two

The CUSTOMERS table has a CUST_CREDT_LIMIT column of date type number.

Which two queries execute successtully?

A) SELECT TO_CHAR(NVL(cust_credit_limit * .15,‘Not Available‘)) FROM customers;

B) SELECT NVL2(cust_credit_limit * .15,‘Not AvailabIe‘) FROM customers;

C) SELECT NVL(cust_credit_limit * .15, ‘Not Available‘) FROM customers;

D) SLECT NVL(TO_CHAR(cust_credit_limit * .15),‘Not available‘) from customers;

E) SELECT NVL2(cust_credit_limit,TO_CHAR(cust_credit_limit * .15),‘NOT Available‘) FROM customers;

Answer:DE

(解析:注意 nvl 返回的数据类型要与原来列的数据类型一致。此题库以前出现过。)

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

时间: 2024-08-03 04:00:33

【2019年8月版本】OCP 071认证考试最新版本的考试原题-第3题的相关文章

【2019年8月】OCP 071认证考试最新版本的考试原题-第28题

choose two The ORDERS table has a column ORDER_DATE of date type DATE The default display format for a date is DD-MON-RR Which two WHERE conditions demonstrate the correct usage of conversion functions? A) WHERE ordet_date > TO_CRAR(ADD_MONTHS(SYSDAT

【2019年8月】OCP 071认证考试最新版本的考试原题-第14题

Choose two. Examine this SQL statement: UPDATE orders o SET customer_name = (SELECT cust_last_name FROM customers WHERE customer_id=o.customer_id); Which two are true? A) The subquery is executed before the UPDATE statement is executed. B) All existi

【2019年8月】OCP 071认证考试最新版本的考试原题-第15题

Choone three Examine the description of the PRODUCTS table: Name Null? Type PRODUCT_ID NOT NULL NUMBER(2) PRODUCT_NANE VARCHAR2(10) UNIT_PRICE NUMBER(3) PURCHARGE VARCHAR2(2) EXPIRY_DATE DATE DELIVERY_DATE DATE Which three queres use valid expression

【2019年8月】OCP 071认证考试最新版本的考试原题-第16题

Choose two. Examine this partial command: CREATE TABLE cust ( cust_id NUMBER(2), credit_ limit NUMBER(10) ) ORGANIZATION EXTERNAL Which two clauses are required for this command to execute successfully? A) the DEFAULT DIRECTORY clause B) the REJECT L

【2019年8月】OCP 071认证考试最新版本的考试原题-第18题

Choose two Which two statements are true about the WHERE and HAVING clouses in a SELECT statement? A) The WHERE clause can be used to exclude rows after divding them into groups B) WHERE and HAVING clauses can be used In the same statement only if ap

【2019年8月】OCP 071认证考试最新版本的考试原题-第19题

Choose two The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOTCE_DATE column of data type DATE NLS_DATE_FORMAT is set to DD-MON-RR. Which two are true about data type conversions involving these columns in query expressions? A) i

【2019年8月】OCP 071认证考试最新版本的考试原题-第20题

Choose two The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER(8, 2). Evaluate this SQL statement: SELECT TO_CHAR(unit_price,'$9,999') FROM Product_intormation; Which two statements are true about the output? A) A row whose UNIT

【2019年8月】OCP 071认证考试最新版本的考试原题-第22题

Choose two Which two statements are true about transactions in the Oracle Database serve? A) An uncommitted transaction commits automatically if the user exits SQL*Plus B) Data Manipulation Language (DML) statements always start a new transaction. C)

【2019年8月】OCP 071认证考试最新版本的考试原题-第21题

choose two In the PROMOTIONS table, the PROMO_BEGTN_DATE columm is of datatype DATE and the default date format is DD-MON-RR. Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a queny? A) TONUMBER(PROMO BEGIN_DATE) -

【2019年8月】OCP 071认证考试最新版本的考试原题-第23题

Choose two Which two statements are true about transactions in the Oracle Database serve? A) An uncommitted transaction commits automatically if the user exits SQL*Plus B) Data Manipulation Language (DML) statements always start a new transaction. C)