OCP-1Z0-新051-61题版本-25
2013-12-29 00:04
411 查看
QUESTION NO: 25
Evaluate the following SQL query;
What would be the outcome?
A. 200
B. 16
C. 160
D. 150
E. 100
Answer: C
答案解析:
参考:78:/article/1348345.html
sys@TESTDB>select trunc(round(156.00,-1),-1) from dual;
TRUNC(ROUND(156.00,-1),-1)
--------------------------
160
Explanation:
Function Purpose
ROUND(column|expression, n) Rounds the column, expression, or value to n decimal places or, if
n is omitted, no decimal places (If n is negative, numbers to the left of decimal point are rounded.)
TRUNC(column|expression, n) Truncates the column, expression, or value to n decimal places or,
if n is omitted, n defaults to zero
Evaluate the following SQL query;
What would be the outcome?
A. 200
B. 16
C. 160
D. 150
E. 100
Answer: C
答案解析:
参考:78:/article/1348345.html
sys@TESTDB>select trunc(round(156.00,-1),-1) from dual;
TRUNC(ROUND(156.00,-1),-1)
--------------------------
160
Explanation:
Function Purpose
ROUND(column|expression, n) Rounds the column, expression, or value to n decimal places or, if
n is omitted, no decimal places (If n is negative, numbers to the left of decimal point are rounded.)
TRUNC(column|expression, n) Truncates the column, expression, or value to n decimal places or,
if n is omitted, n defaults to zero
相关文章推荐
- eclipse如何导入sql server2005中的jar包
- 动态规划:从新手到专家
- OCP-1Z0-新051-61题版本-24
- OCP-1Z0-新051-61题版本-23
- OCP-1Z0-新051-61题版本-22
- OCP-1Z0-新051-61题版本-21
- 问佛 --仓央嘉措
- 1
- 经典数据结构之二叉树
- 学计算机必读
- ubuntu12.04安装嵌入式开发环境
- Java学习笔记----------------RMI操作
- [原]项目进阶 之 持续构建环境搭建(四)Jenkins环境搭建
- J2EE学习中一些值得研究的开源项目
- 过年老家来亲戚,才知道月挣3万仍是穷逼
- javascript轻松实现当鼠标移开时已弹出子菜单自动消失
- js data日期初始化的5种方法
- 从js向Action传中文参数出现乱码问题的解决方法
- jquery中的on方法使用介绍
- javascript中不等于的代码是什么怎么写