OCP 1Z0 051 22

来源:互联网 发布:mac原版镜像 编辑:程序博客网 时间:2024/05/29 19:54
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 

可与时间加减,单位是天
Answer: D 
0 0