nerdexam
Oracle

1Z0-047 · Question #229

1Z0-047 Question #229: Real Exam Question with Answer & Explanation

The correct answer is A. All the statements would execute successfully and the ORD_NO column would contain the value 2. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the ORD table. Evaluate the following SQL statements that are executed in a user session in the specified order: CREATE SEQUENCE ord_seq; SELECT ord_seq.nextval FROM dual; INSERT INTO ord VALUES (ord_seq.CURRVAL, 25-jan-2007',101); UPDATE ord SET ord_no= ord_seq.NEXTVAL WHERE cust_id =101; What would be the outcome of the above statements?

Exhibit

1Z0-047 question #229 exhibit

Options

  • AAll the statements would execute successfully and the ORD_NO column would contain the value 2
  • BThe CREATE SEQUENCE command would not execute because the minimum value and maximum
  • CThe CREATE SEQUENCE command would not execute because the starting value of the sequence
  • DAll the statements would execute successfully and the ORD_NO column would have the value 20

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice