insert into antecedentes (ant_paciente,ant_concepto,ant_medicacion) select 1,301,to_char(sum(to_number(ant_medicacion,'999')),'999') from antecedentes where ant_concepto between 302 and 310 and ant_paciente=1
