【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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章