Question:Examine the following trigger: CREATE OR REPLACE TRIGGER Emp_count AFTER DELETE ON Employee FOR EACH ROW DECLARE n INTEGER; BEGIN SELECT COUNT(*) INTO n FROM employee; DMBS_OUTPUT.PUT_LINE( 'There are now' || n || 'employees'); END; This trigger results in an error after this SQL statement is entered: DELETE FROM Employee WHERE Empno = 7499; How should the error be corrected? 

A Change the trigger type to a BEFORE DELETE 

B Take out the COUNT function because it is not allowed in a trigger 

C Remove the DBMS_OUTPUT statement because it is not allowed in a trigger 

D Change the trigger to a statement-level trigger by removing FOR EACH ROW 

+ Answer
+ Report
Total Preview: 5531

Copyright © 2024. Powered by Intellect Software Ltd