nerdexam
Oracle

1Z0-047 · Question #264

View the Exhibit and examine the structure of the ORDERS table. The ORDERS table belongs to the user OE. HR is another user in the database. Evaluate the commands issued by users OE and HR in the…

The correct answer is C. There are no errors in the statements issued by OE and HR; all the statements would execute successfully. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the ORDERS table. The ORDERS table belongs to the user OE. HR is another user in the database. Evaluate the commands issued by users OE and HR in the following order:

Statement 1 by user OE: GRANT SELECT, UPDATE(customer_id, order_total) ON orders TOhr; Statement 1 by user HR: SELECT * FROM oe.orders; Statement 2 by user HR: UPDATE oe.orders SET order_totah 10000; Which statement is true regarding the above commands?

Exhibit

1Z0-047 question #264 exhibit

Options

  • AStatement 1 by user OE would not work because the statement has to be issued by the DBA.
  • BStatement 2 by user HR would not work because the grant is only for SELECT in a subquery of update.
  • CThere are no errors in the statements issued by OE and HR; all the statements would execute successfully.
  • DStatement 1 by user HR would not work because SELECT and UPDATE privileges have been granted only

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    14% (6)
  • C
    79% (33)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice