I need help with below trigger. It's probably poorly written but hopeful to get some help on correcting it logically and syntactically.
So if APP_USER who is approver 1 (could be more than 1) selects approve_This=Y, then mail should be sent to the app_users who are Approver 2.
I am confused as to how can i write this code logically correct.
CREATE OR REPLACE TRIGGER ISSUE_NOTIFY
BEFORE
begin
If upper(v_username)=upper(:APP_USER) and v_approver='Approver 1' and v_approve_This='Y'
THEN
--when above condition satisfied then set approve_This='N' and send email as below to Approver 2--