nerdexam
Oracle

1Z0-047 · Question #155

View the Exhibit and examine the data in EMP and DEPT tables. In the DEPT table, DEPTNO is the PRIMARY KEY. In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing the…

The correct answer is D. Only the second INSERT statement would succeed because all the constraints except referential. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the data in EMP and DEPT tables. In the DEPT table, DEPTNO is the PRIMARY KEY. In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing the DEPTNO column in the DEPT table. What would be the outcome of the following statements executed in the given sequence? DROP TABLE emp; FLASHBACK TABLE emp TO BEFORE DROP; INSERT INTO emp VALUES (2.COTT 10); INSERT INTO emp VALUES (3,ING 55);

Exhibit

1Z0-047 question #155 exhibit

Options

  • ABoth the INSERT statements would fail because all constraints are automatically retrieved when the
  • BBoth the INSERT statements would succeed because none of the constraints on the table are
  • COnly the first INSERT statement would succeed because all the constraints except the primary key
  • DOnly the second INSERT statement would succeed because all the constraints except referential

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    5% (1)
  • C
    5% (1)
  • D
    82% (18)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice