Oracle
1Z0-061 · Question #130
You created an ORDERS table with the following description: You inserted some rows in the table. After some time, you want to alter the table by creating the PRIMARY KEY constraint on the ORD_ID…
The correct answer is B. You can add the primary key constraint even if data exists, provided that there are no duplicate. See the full explanation below for the reasoning.
Question
You created an ORDERS table with the following description:
You inserted some rows in the table. After some time, you want to alter the table by creating the PRIMARY KEY constraint on the ORD_ID column. Which statement is true in this scenario?
Exhibit
Options
- AYou cannot add a primary key constraint if data exists in the column
- BYou can add the primary key constraint even if data exists, provided that there are no duplicate
- CThe primary key constraint can be created only a the time of table creation
- DYou cannot have two constraints on one column
How the community answered
(44 responses)- A18% (8)
- B70% (31)
- C9% (4)
- D2% (1)
Community Discussion
No community discussion yet for this question.
