Examine the description of the PRODUCT_DETAILS table:
Which two statements are true? (Choose two.)
Examine the description of the PRODUCT_DETAILS table:
Which two statements are true? (Choose two.)
PRODUCT_ID can be assigned the PRIMARY KEY constraint since it is NOT NULL and using it as a primary key will uniquely identify records in the table, ensuring there are no duplicate values. Additionally, PRODUCT_PRICE can indeed be used in arithmetic expressions even if it has no value stored in it; however, the result of the arithmetic operation with a NULL value will itself be NULL and won't trigger any error. The other options are incorrect because EXPIRY_DATE cannot be assumed to have a default SYSDATE, PRODUCT_NAME can contain duplicate values unless explicitly constrained, and EXPIRY_DATE can indeed be used in arithmetic expressions such as adding or subtracting days.
You can add NULL to a number it will result in NULL
B is wrong, absence of data means null. An arithmetic operation with a null value always yields null
what about nvl?
BF PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it, but the result will be NULL
But it doesn't send an error message
BF are correct
BF correct
We dont know if there's any duplicate values for the id column so how do we know if it can be a PK
D. EXPIRY_DATE cannot be used in arithmetic expressions. False. You can use Arithmetic expressions in Dates, just not all of them. SELECT DATE'2023-05-20' - 1 AS expire_date, DATE'2023-05-20' + 1 AS extra_day FROM DUAL; I agree that the primary key could contain duplicated values, but is the one that seems most feasible out of the remaining options.
B's correct, so is F
BF correct, see discussion on same question: https://www.examtopics.com/discussions/oracle/view/8221-exam-1z0-071-topic-1-question-229-discussion/
Expiry_DATE cannot be used in arithmetic expressions -> FALSE.
yes it's possible. Foe example : SELECT expiry_date + 3 FROM product_details; (to add 3 days) SELECT expiry_date + interval '1' month FROM product_details; (to add 1 month)
why expiry date can not be used in arithmetic expressions ?
EXPIRY_DATE cannot be used in arithmetic expressions. - FALSE Because on date data type you can use a "MINUS" arithmetic expressions.
But can you multiply a date or divide it?