-- Fail to change the ISOK_Results.IRID UPDATE isok_results SET irid = irid + 1 WHERE irid = (SELECT MAX(ir.irid) FROM isok_results AS ir);