OCP-1Z0-051-Question Analysis-22nd question

Source: Internet
Author: User

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 shoshould be stored in a format such that it can be easily added and subtracted
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.
Which data type wocould you use for such a column in the table?
(You need to create a banking business table. One of the fields has the following requirements:
1) This field needs to store the duration of the credit period.
2) without using the conversion function, you can simply add or subtract the Date data type.
3) The maximum period for credit issuance is 30 days.
4) if an individual already owns a credit card, the daily interest is calculated .)
A. DATE
B. NUMBER
C. TIMESTAMP
D. INTERVAL DAY TO SECOND

E. INTERVAL YEAR TO MONTH


Answer: D

A: The Date type is stored at A time point, not for A period of time (incorrect)
B: The number type cannot be added or subtracted from the date type (incorrect)
C: Same as A, it stores time points (errors)
D: Correct
E: error, not accurate to day

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.