exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 9 discussion

Actual exam question from Oracle's 1z0-071
Question #: 9
Topic #: 1
[All 1z0-071 Questions]

Which two statements are true about TRUNCATE and DELETE? (Choose two.)

  • A. DELETE can use a WHERE clause to determine which row(s) should be removed.
  • B. TRUNCATE can use a WHERE clause to determine which row(s) should be removed.
  • C. TRUNCATE leaves any indexes on the table in an UNUSABLE state.
  • D. The result of a TRUNCATE can be undone by issuing a ROLLBACK.
  • E. The result of a DELETE can be undone by issuing a ROLLBACK.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
devml
Highly Voted 1 year, 11 months ago
A. DELETE can use a WHERE clause to determine which row(s) should be removed. ---> Is correct B. TRUNCATE can use a WHERE clause to determine which row(s) should be removed. ---> Its wrong bcoz truncate will delete every rows in a table except the table definitions. C. TRUNCATE leaves any indexes on the table in an UNUSABLE state. ----> its wrong truncate will remove everything except table definition or skeleton of the table D. The result of a TRUNCATE can be undone by issuing a ROLLBACK.-----> Its wrong bcoz TRUNCATE is a ddl statement whereas it can be done for DELETE since its dml statement E. The result of a DELETE can be undone by issuing a ROLLBACK. ----> Its correct bcoz DELETE is DML statement and each delete of row are recorded in transaction log or the redo logs.
upvoted 5 times
...
Drexan
Most Recent 2 months, 2 weeks ago
Selected Answer: AE
Truncate is forever...
upvoted 1 times
...
alelejaja
7 months, 3 weeks ago
Selected Answer: AE
A, E correct answers
upvoted 1 times
...
Chandra1104
1 year, 9 months ago
AE is the correct ans. With truncate we can not user where clause (B) with truncate even if we rollback data will not be rollback. (D)
upvoted 2 times
...
heoj10272
2 years, 3 months ago
AE correct answers
upvoted 2 times
...
Artur1991
2 years, 4 months ago
AE are the correct answers
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago