MCQs>Database Management>Oracle PL/SQL 9i>Examine the code given below: CREATE OR REPLACE TRIGGER secure_emp BEFORE LOGON ON employees BEGIN IF (TO_CHAR(SYSDATE, 'DY') IN (SAT', 'SUN')) OR (TO_CHAR(SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AND '18:00') THEN RAISE_APPLICATION_ERROR (-20500, 'You may insert into the EMPLOYEES table only during business hours.'); END IF; END; / What type of trigger is this?
Oracle PL/SQL 9i MCQs
Examine the code given below: CREATE OR REPLACE TRIGGER secure_emp BEFORE LOGON ON employees BEGIN IF (TO_CHAR(SYSDATE, "DY") IN (SAT", "SUN")) OR (TO_CHAR(SYSDATE, "HH24:MI") NOT BETWEEN "08:00" AND "18:00") THEN RAISE_APPLICATION_ERROR (-20500, "You may insert into the EMPLOYEES table only during business hours."); END IF; END; / What type of trigger is this?
Answer
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one