Can you help me write the update statement:
UPDATE TABLE1
SET FIELD1=:NEW.FIELD1,
FIELD2=:NEW.FIELD2,
WHERE TABLE1.EMPID=:NEW.EMPID
to also update table1.curstat to 1 if :new.reason=2,
table1.curstat to 2 if :new.reason=4,
table1.curstat to 3 if :new.reason is null
I can't seem to get the right syntax. Thanks
UPDATE TABLE1
SET FIELD1=:NEW.FIELD1,
FIELD2=:NEW.FIELD2,
WHERE TABLE1.EMPID=:NEW.EMPID
to also update table1.curstat to 1 if :new.reason=2,
table1.curstat to 2 if :new.reason=4,
table1.curstat to 3 if :new.reason is null
I can't seem to get the right syntax. Thanks