Which two statements are true regarding the storage of …

Examine the structure proposed for the TRANSACTIONS table:

Which two statements are true regarding the storage of data in the above table structure? (Choose two.)

Examine the structure proposed for the TRANSACTIONS table:

Which two statements are true regarding the storage of data in the above table structure? (Choose two.)

A.
The TRANS_DATE column would allow storage of dates only in the dd-mon-yyyy format.

B.
The CUST_CREDIT_VALUE column would allow storage of positive and negative integers.

C.
The TRANS_VALIDITY column would allow storage of a time interval in days, hours, minutes, and seconds.

D.
The CUST_STATUS column would allow storage of data up to the maximum VARCHAR2 size of 4, 000
characters.

Explanation:
B: The NUMBER datatype stores fixed and floating-point numbers. Numbers of virtually any magnitude can be
stored and are guaranteed portable among different systems operating Oracle, up to 38 digits of precision.
The following numbers can be stored in a NUMBER column:
Positive numbers in the range 1 x 10-130 to 9.99…9 x 10125 with up to 38 significant digitsNegative numbers from -1 x 10-130 to 9.99…99 x 10125 with up to 38 significant digits
Zero
Positive and negative infinity (generated only by importing from an Oracle Version 5 database)
D: The VARCHAR2 datatype stores variable-length character strings. When you create a table with a
VARCHAR2 column, you specify a maximum string length (in bytes or characters) between 1 and 4000 bytes
for the VARCHAR2 column.
An interval literal specifies a period of time, and Oracle supports two types of interval literals:
YEAR_TO_MONTH and DAY TO SECOND. For DAY TO SECOND, you can specify these differences in terms
in terms of days, hours, minutes, and seconds. DAY TO SECOND contains a leading field and may contain an
optional trailing field. If trailing field is specified it must be less significant than the leading field. For example,
INTERVAL MINUTE TO DAY is not valid.
A DAY TO MINUTE interval considers an interval of days to the nearest minute.
Oracle Database Concepts 10g, Native Datatypes



Leave a Reply 4

Your email address will not be published. Required fields are marked *


edm

edm

Answer should be B and C.

evilsoldier

evilsoldier

INTERVAL DAY TO SECOND stores a period of time in terms of days, hours, minutes, and seconds.

Variable-length character string having maximum length size bytes or characters. Maximum size is 4000 bytes or characters, and minimum is 1 byte or 1 character. You must specify size for VARCHAR2.

C. is also true. You could store -1000 in NUMBER(10)

Hola

Hola

C. “INTERVAL YEAR TO MONTH Used for recording a period in years and months between two DATEs or TIMESTAMPs.
image INTERVAL DAY TO SECOND Used for recording a period in days and seconds between two DATEs or TIMESTAMPs.”

It can also save TIMESTAMPS.

B & D:

The CUST_CREDIT_VALUE column would allow storage of positive and negative integers.

The CUST_STATUS column would allow storage of data up to the maximum VARCHAR2 size of 4, 000
characters.