CREATE SEQUENCE "IMCYC"."RELATIONSHIP_JOIN_ID_SEQ" RESET BY SELECT ifnull(MAX(ID), 0) + 1 FROM  ES_BO_RELATIONSHIP_JOIN