Multiple choice technology databases

You need to create a trigger on the EMP table that monitors every row that is changed and places this information into the AUDIT_TABLE. What type of trigger do you create?

  1. FOR EACH ROW trigger on the EMP table.

  2. Statement-level trigger on the EMP table.

  3. FOR EACH ROW trigger on the AUDIT_TABLE table.

  4. Statement-level trigger on the AUDIT_TABLE table.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To monitor every row change in EMP and insert into AUDIT_TABLE, you need a row-level trigger (FOR EACH ROW) on the source table EMP. Statement-level triggers fire once per statement regardless of rows affected. The trigger should be on EMP, not AUDIT_TABLE, since you're monitoring changes to EMP.