Which two statements are correct about the trigger to be created for the above requirement?

You want to create a trigger that fires whenever rows are deleted from the customer table and that
displays the number of rows remaining in the table.
Which two statements are correct about the trigger to be created for the above requirement?
(Choose two.)

You want to create a trigger that fires whenever rows are deleted from the customer table and that
displays the number of rows remaining in the table.
Which two statements are correct about the trigger to be created for the above requirement?
(Choose two.)

A.
It should be an after trigger.

B.
It should be a before trigger.

C.
It should be a row-level trigger.

D.
It should be a statement-level trigger.

E.
It can be a before or an after trigger.



Leave a Reply 17

Your email address will not be published. Required fields are marked *


Uladzimir

Uladzimir

A, C

Row level trigger will result in mutating table error

Uladzimir

Uladzimir

A,D
I made a typo

Giang Doan

Giang Doan

D. E

alex

alex

A before trigger will give the number of records before you delete. So E is not correct.

t

t

not E ANYWAY.

Dumbs said A,C but i don’t believe them

prefer AD

User

User

D is correct because if the trigger attempts to select or modify the table while the trigger has not completed (ie. table is in transition). then mutating trigger error occurs because the table is in middle of a transaction so it causes the trigger to mutate.

User

User

Because each record is being dml’ed one by one, it is mutating