A trigger can be executed before or after each row is inserted. If executed before the update a table containing the old row is passed, and if after a table containing the new row.