nerdexam
Oracle

1Z0-047 · Question #137

View the Exhibit and examine the structure of the EMP table. You executed the following command to add a primary key to the EMP table: ALTER TABLE emp ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id)…

The correct answer is B. The PRIMARY KEY is created and it would use an existing unique index. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the EMP table. You executed the following command to add a primary key to the EMP table:

ALTER TABLE emp ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id) USING INDEX emp_id_idx; Which statement is true regarding the effect of the command?

Exhibit

1Z0-047 question #137 exhibit

Options

  • AThe PRIMARY KEY is created along with a new index.
  • BThe PRIMARY KEY is created and it would use an existing unique index.
  • CThe PRIMARY KEY would be created in a disabled state because it is using an existing index.
  • DThe statement produces an error because the USING clause is permitted only in the CREATE TABLE

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    84% (31)
  • C
    8% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice