nerdexam
Oracle

1Z0-146 · Question #56

Examine the commands: CREATE TYPE typ_course_tab IS VARRAY(5) OF VARCHAR2(20) / CREATE TYPE typ_course_nst AS TABLE OF typ_course_tab / CREATE TABLE faculty (faculty_id NUMBER(5), faculty_name…

The correct answer is C. Only the first four commands execute successfully. See the full explanation below for the reasoning.

Question

Examine the commands:

CREATE TYPE typ_course_tab IS VARRAY(5) OF VARCHAR2(20) / CREATE TYPE typ_course_nst AS TABLE OF typ_course_tab / CREATE TABLE faculty (faculty_id NUMBER(5), faculty_name VARCHAR2(30), courses typ_course_nst) NESTED TABLE courses STORE AS course_stor_tab / INSERT INTO faculty VALUES (101, 'Jones', NULL); UPDATE (SELECT courses FROM faculty WHERE faculty_id=101) SET courses = typ_course_nst(11,'Oracle'); Which statement is true about the execution of these commands?

Options

  • AAll the commands execute successfully.
  • BOnly the first two commands execute successfully.
  • COnly the first four commands execute successfully.
  • DOnly the first three commands execute successfully.

How the community answered

(36 responses)
  • A
    14% (5)
  • B
    6% (2)
  • C
    72% (26)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice