Evaluate the SQL statement
DROP TABLE DEPT
Which four statements are true of the SQL statement?
A. You cannot roll back this statement.
B. All pending transactions are committed.
C. Al views based on the DEPT table are deleted.
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.
F.All data in the table is deleted, but the structure of the table is retained.
G.All synonyms based on the DEPT table are deleted.
Answer:
A, B, D and E
Explanation:
A. You cannot roll back DROP TABLE statement.
B. All pending transactions related on this table arecommitted.
D. If the table is dropped, Oracle automatically drops any index, trigger and constraintassociated with the table as well.
E. All data in the table is deleted, and the table structure is also deleted.
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.
Note: Go to lot of interview quesitions and answers, objective type questions with answers click http://atchaya.com/ora/orahome.html Goto Oracle forum click http://atchaya.wikidot.com/forum/c-91091/discussion-about-oracle
DROP TABLE DEPT
Which four statements are true of the SQL statement?
A. You cannot roll back this statement.
B. All pending transactions are committed.
C. Al views based on the DEPT table are deleted.
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.
F.All data in the table is deleted, but the structure of the table is retained.
G.All synonyms based on the DEPT table are deleted.
Answer:
A, B, D and E
Explanation:
A. You cannot roll back DROP TABLE statement.
B. All pending transactions related on this table arecommitted.
D. If the table is dropped, Oracle automatically drops any index, trigger and constraintassociated with the table as well.
E. All data in the table is deleted, and the table structure is also deleted.
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.
Note: Go to lot of interview quesitions and answers, objective type questions with answers click http://atchaya.com/ora/orahome.html Goto Oracle forum click http://atchaya.wikidot.com/forum/c-91091/discussion-about-oracle
Comments