zoukankan      html  css  js  c++  java
  • OCP-1Z0-051-题目解析-第22题

    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? 
    (你须要创建一个银行业务表,当中一个字段有例如以下要求:
    1)该字段须要存储信贷期限的持续时间。
    2)不使用转换函数,就能够简单的和Date数据类型加减。
    3)应用中信贷发放的最大周期是30天
    4)已经拥有信用卡的个人,按天计算利息。)

    A. DATE 
    B. NUMBER 
    C. TIMESTAMP 
    D. INTERVAL DAY TO SECOND 

    E. INTERVAL YEAR TO MONTH 


    Answer: D 

    A:Date类型存储的是一个时间点,不是一段时间 (错误)
    B:number类型不能和date类型简单的加减 (错误)
    C: 和A一样存储的是时间点(错误)
    D: 正确
    E: 错误,不能精确到天
  • 相关阅读:
    matrix_last_acm_4
    matrix_last_acm_3
    matrix_last_acm_2
    matrix_last_acm_1
    2015亚洲区北京站网络赛
    poj 1062 昂贵的聘礼 最短路
    2-SAT !!
    hdu 4925
    hdu 4927 Java大数
    poj3687 拓扑排序 还没怎么搞明白 回头再想想
  • 原文地址:https://www.cnblogs.com/hrhguanli/p/5095763.html
Copyright © 2011-2022 走看看