Bird
0
0

Which of the following is a valid reason to use a DELETE trigger in a database?

easy📝 Conceptual Q2 of 15
SQL - Triggers
Which of the following is a valid reason to use a DELETE trigger in a database?
ATo automatically log deleted rows for auditing
BTo speed up the deletion process
CTo prevent any rows from being deleted
DTo create new rows when a delete happens
Step-by-Step Solution
Solution:
  1. Step 1: Identify common uses of DELETE triggers

    DELETE triggers often log deletions or maintain related data.
  2. Step 2: Evaluate options

    Logging deleted rows is a common and valid use; speeding deletion or preventing all deletes is not typical.
  3. Final Answer:

    To automatically log deleted rows for auditing -> Option A
  4. Quick Check:

    DELETE trigger use = logging deletions [OK]
Quick Trick: Use DELETE triggers to log or audit deletions [OK]
Common Mistakes:
  • Thinking triggers speed up deletes
  • Assuming triggers block all deletes
  • Confusing DELETE triggers with INSERT triggers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes