Currently we have a trigger on tbl_number. It is as follows,
create or replace TRIGGER TRIGGER_EXAMPLE
BEFORE DELETE
ON TBL_NUMBER
FOR EACH ROW
BEGIN
-- Insert record into TBL_NUMBER _DUMMY table
INSERT INTO TBL_NUMBER _DUMMY
( NAME, NO_OF_PEOPLE)
VALUES
( :old.NAME, :old.NO_OF_PEOPLE)
END;
Now we want to modify trigger and check value NO_OF_People in original table tbl_number and if it is (-1), we want to put 0 (or null) in column NO_of_People of table tbl_number_dummy.
Any pointers for it would be appreciated.
Thanks, -Adi