Last answered:

24 Oct 2021

Posted on:

16 Oct 2021

0

Confusion between insert and update?

Okay so i know insert is to create a new record and update to modify a existing one however for this problem i want to know wouldn't before update make more sense however the question doesn't state current employee. Can you please explain in more simpler terms when to use before insert and update?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

24 Oct 2021

1

Hi wahab!
Thanks for reaching out.

Whether you will use a before-insert or a before-update trigger depends entirely on what you want to use the trigger in question for. In this particular example, we've used a before-insert trigger just as an example.

Hope this helps.
Best,
Martin

Submit an answer