Oracle Database SQL Language Reference 19c states: " If a column in a row has no value, then the column is said to be null, or to contain null, " and " Most scalar functions return null when given a null argument. " It also describes the DEFAULT clause, which " lets you specify a value to be assigned to the column if a subsequent INSERT statement omits a value for the column. "
A is correct because PRODUCT_ID is a NOT NULL NUMBER(2) column, and nothing prevents a PRIMARY KEY constraint from being added to it, provided its existing values are unique. C is correct because a null PRODUCT_PRICE can still be used in an expression such as product_price * 1.1. The statement runs without error, and the result for that row is NULL.
B and D are incorrect because the description shows no DEFAULT value; a column without a default is set to NULL when it is omitted, not to zero or SYSDATE. E is incorrect because NOT NULL does not enforce uniqueness; only a UNIQUE or PRIMARY KEY constraint does. F is incorrect because DATE columns support arithmetic, for example expiry_date + 30 or expiry_date - SYSDATE.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit