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?
A.
FOR EACH ROW trigger on the EMP table.
B.
Statement-level trigger on the EMP table.
C.
FOR EACH ROW trigger on the AUDIT_TABLE table.
D.
Statement-level trigger on the AUDIT_TABLE table.
E.
FOR EACH ROW statement-level trigger on the EMPtable.
Explanation:
A FOR EACH ROW trigger on the EMP table will fire for each row that is modified in the employee
table and will insert a record in the AUDIT_TABLE for each corresponding row modified in the
EMP Table. A Statement-level trigger will only fire once and could only be used to insert a single
row into the AUTIT_TABLE.
Incorrect Answers:
B: Would only insert one row into the AUDIT_TABLE and could not reference the :OLD &: NEW
qualifies. Therefore you could not track the changes made to the EMP Columns, you could only
log that an update was performed on the table.
C: The trigger should be based on the UPDATE Event of the EMP Table.D: Incorrect Trigger Type
on the wrong table
E: Incorrect Trigger Type
Here are several of the websites we advise for our visitors.
one of our visitors recently encouraged the following website
usually posts some quite fascinating stuff like this. If youre new to this site
Sites of interest we have a link to
one of our visitors just lately suggested the following website
the time to read or take a look at the content material or web sites we have linked to beneath the
Sites of interest we have a link to
always a significant fan of linking to bloggers that I adore but really don’t get a great deal of link love from
usually posts some quite exciting stuff like this. If youre new to this site
Wonderful story, reckoned we could combine a handful of unrelated data, nevertheless seriously really worth taking a appear, whoa did one master about Mid East has got additional problerms too