1Z0-51 QUESTION 22 INTERVAL的使用
2014-05-11 00:12
411 查看
QUESTION 22
You need to create a table for a banking application. One of the columns in the table has the following
requirements:
1) You want a column in the table to store the duration of the credit period.
2) The data in the column should be stored in a format such that it can be easily added and subtracted with
DATE data type without using conversion functions.
3) The maximum period of the credit provision in the application is 30 days.
4) The interest has to be calculated for the number of days an individual has taken a credit for.
Which data type would you use for such a column in the table?
A. DATE
B. NUMBER
C. TIMESTAMP
D. INTERVAL DAY TO SECOND
E. INTERVAL YEAR TO MONTH
答案:D
解析:
根据条件1,该字段存储的是持续时间,是个时间段,排除A DATE和D TIMESTAMP;
根据条件2, 该字段能和DATE类型相加减,而不经过转换,排除B NUMBER;
根据3,4,该字段应该是可以精确到天的,排除E
因此,答案为D。
You need to create a table for a banking application. One of the columns in the table has the following
requirements:
1) You want a column in the table to store the duration of the credit period.
2) The data in the column should be stored in a format such that it can be easily added and subtracted with
DATE data type without using conversion functions.
3) The maximum period of the credit provision in the application is 30 days.
4) The interest has to be calculated for the number of days an individual has taken a credit for.
Which data type would you use for such a column in the table?
A. DATE
B. NUMBER
C. TIMESTAMP
D. INTERVAL DAY TO SECOND
E. INTERVAL YEAR TO MONTH
答案:D
解析:
根据条件1,该字段存储的是持续时间,是个时间段,排除A DATE和D TIMESTAMP;
根据条件2, 该字段能和DATE类型相加减,而不经过转换,排除B NUMBER;
根据3,4,该字段应该是可以精确到天的,排除E
因此,答案为D。
相关文章推荐
- Amazon Campus(2013-Sep-22)Question 1 / 2 (Amazon Campus(5): completely inside interval)
- OCP-1Z0-051 第22题 INTERVAL DAY TO SECOND的使用方法
- 1Z0-51 QUESTION 18 DISTINCT的用法
- 1Z0-51 QUESTION 33 CREATE TABLE中约束的语法
- OCP 1Z0 051 QUESTION NO: 22
- 1Z0-051 QUESTION 16 Q操作符的使用
- 1Z0-51 QUESTION 20 表的数据类型应该注意的地方
- 1Z0-051 QUESTION 2 选项WITH CHECK OPTION在CREATE VIEW中的使用
- OCP 1Z0 051 QUESTION NO: 51
- 1Z0-051 QUESTION 3 转译字符\在where语句中的使用
- 1Z0-051 QUESTION 13 Q字符的特殊使用
- 51 单片机使用串入并出芯片 164 以及矩阵键盘
- 关于使用iar for 51为cc2540生成hex文件的注意事项
- OCP-1Z0-051-2015-51题
- Spring Boot---(22)SpringBoot使用Actuator监控
- Effective JavaScript Item 22 使用arguments来创建接受可变参数列表的函数
- L298N模块的连接与使用(stm32驱动与51驱动)
- 使用云主机配置互信后ssh: connect to host hadoop port 22: Connection timed out
- OCP 1Z0 051 QUESTION NO: 39
- ocp 1Z0-051 1-22题解析