-- order 502834 (downgraded to 8.02.02)
 
insert into stay
          (stay_id,
           staytype,
           staynr,
           factorydescription,
           systemuser_id,
           timestamp)
        values
          (seq_stay.nextval,
           3,
           50,
           'Inscan',
           getminsystemuser(),
           sysdate);