SELECT PRE_CO_ID as LAST_ID from (select PRE_CO_ID from T_PRE_PREREGISTRO order by PRE_CO_ID desc) where rownum <=1;