QuestionQ151

VerifiedCreating and Managing Tables

Evaluate these SQL statements:

Exhibit:

Question Image

Exhibit:

Question Image

The command shown above fails when it is executed. What could be the reason?

Explanation

Oracle does not allow SYSDATE in a CHECK constraint condition because it is nondeterministic. The condition expiry_date > SYSDATE therefore causes the table-creation command to fail.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!