QuestionQ17

VerifiedCreating and Managing Tables

Evaluate the following SQL commands:

Question Image

The table-creation command fails. Identify the two reasons the SQL statement fails.

Choose two
Explanation

In Oracle Database 11g, a CHECK constraint condition cannot use SYSDATE, and a column DEFAULT expression cannot reference the NEXTVAL sequence pseudocolumn. BETWEEN is valid in a CHECK condition, and a foreign-key column may also participate in a composite primary key.

Learn more

Community Discussion

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