newbie Trigger with Insert Record
Steve42Sep 17 2008 — edited Sep 17 2008
Here's what I want the table to look like
I want ALL Eventid to start with 1 for EACH ORGN.
All Eventid MUST be UNIQUE.
When a USER inserts a record, I need it to calculate the next EVENTID #.
CREATE OR REPLACE
Before INSERT ON TESTSEQUENCE
referencing new as new old as old
for each row
select event_seq.nextval INTO :new.Eventnum from testSequence
where :new.fiscalyear=2008 and :new.orgn='3601' and rownum<=1;
I have not been able to figure out how to pass ORGN and FiscalYear to trigger.