nerdexam
Oracle

1Z0-007 · Question #50

Evaluate the SQL statement DROP TABLE DEPT: Which four statements are true of the SQL statement? (Choose four)

The correct answer is A. You cannot roll back this statement. B. All pending transactions are committed. D. All indexes based on the DEPT table are dropped. E. All data in the table is deleted, and the table structure is also deleted. You cannot roll back DROP TABLE statement. All pending transactions related on this table are committed. If the table is dropped, Oracle automatically drops any index, trigger and constraint associated with the table as well. All data in the table is deleted, and the table…

Creating and Managing Schema Objects

Question

Evaluate the SQL statement DROP TABLE DEPT:

Which four statements are true of the SQL statement? (Choose four)

Options

  • AYou cannot roll back this statement.
  • BAll pending transactions are committed.
  • CAll views based on the DEPT table are deleted.
  • DAll indexes based on the DEPT table are dropped.
  • EAll data in the table is deleted, and the table structure is also deleted.
  • FAll data in the table is deleted, but the structure of the table is retained.
  • GAll synonyms based on the DEPT table are deleted.

How the community answered

(44 responses)
  • A
    82% (36)
  • C
    5% (2)
  • F
    2% (1)
  • G
    11% (5)

Explanation

You cannot roll back DROP TABLE statement. All pending transactions related on this table are committed. If the table is dropped, Oracle automatically drops any index, trigger and constraint associated with the table as well. All data in the table is deleted, and the table structure is also Incorrect Answers C: All views based on the DEPT table become invalid, but they are not deleted. F: All data in the table is deleted, and the table structure is also deleted. Command TRUNCATE deletes all data in the table, but does not delete the structure of the table. G: All synonyms based on the DEPT table are not deleted after dropping the table.

Topics

#DROP TABLE#DDL effects#implicit commit#indexes

Community Discussion

No community discussion yet for this question.

Full 1Z0-007 Practice