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

Choose two.

Which two statements are true about single row functions?

A) CONCAT : can be used to combine any number of values

B) MOD : returns the quotient of a division operation

C) CEIL : can be used for positive and negative numbers

D) FLOOR : returns the smallest integer greater than or equal to a specified number

E) TRUNC : can be used with NUMBER and DATE values

Answer::CE

(解析:concat 函数只能连接两个字符串或者两个列的值。

ceil 函数向上取整数。

floor 函数向下取整。)

SQL> select ceil(-500.1) from dual;

CEIL(-500.1)



-500

SQL> select ceil(-500.99999) from dual;

CEIL(-500.99999)



-500

SQL> select floor(-500.1) from dual;

FLOOR(-500.1)



-501

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

时间: 2024-11-09 02:36:50

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

【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)