您的位置:首页 > 产品设计 > UI/UE

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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: