• Thanks, you are right I mean DML, one update, one insert,

    it looks like using a temp table is a good solution.